/* ==========================================================================
   India Pet Shop — UI kit
   Design tokens, buttons, section headings and the product card shared by
   the home and product listing pages.
   ========================================================================== */

:root {
    --hm-primary: #5b2fd6;
    --hm-primary-dark: #4721b5;
    --hm-primary-soft: #efe9ff;
    --hm-accent: #ff9f1c;
    --hm-pink: #ff2e74;
    --hm-ink: #1d1b2f;
    --hm-muted: #6b6880;
    --hm-line: #ece9f5;
    --hm-bg-soft: #f6f3fe;
    --hm-white: #ffffff;
    --hm-radius: 18px;
    --hm-radius-sm: 12px;
    --hm-shadow: 0 10px 30px rgba(45, 26, 110, 0.08);
    --hm-shadow-hover: 0 18px 40px rgba(45, 26, 110, 0.16);
    --hm-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Buttons & headings ---------- */

.hm-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hm-primary);
    margin-bottom: 14px;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hm-btn:hover {
    transform: translateY(-2px);
}

.hm-btn--primary {
    background: var(--hm-primary);
    color: var(--hm-white) !important;
    box-shadow: 0 10px 24px rgba(91, 47, 214, 0.3);
}

.hm-btn--primary:hover {
    background: var(--hm-primary-dark);
}

.hm-btn--ghost {
    border-color: var(--hm-primary);
    color: var(--hm-primary) !important;
    background: transparent;
}

.hm-btn--ghost:hover {
    background: var(--hm-primary);
    color: var(--hm-white) !important;
}

.hm-btn--light {
    background: var(--hm-white);
    color: var(--hm-ink) !important;
}

.hm-btn--sm {
    padding: 10px 18px;
    font-size: 13px;
}

.hm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.hm-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-title i {
    color: var(--hm-accent);
    font-size: 18px;
    transform: rotate(-20deg);
}

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hm-primary) !important;
}

.hm-link:hover i {
    transform: translateX(3px);
}

.hm-link i {
    transition: transform 0.2s ease;
}

.hm-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hm-line);
    background: var(--hm-white);
    color: var(--hm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hm-nav:hover:not(:disabled) {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: var(--hm-white);
}

.hm-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ---------- Product card ---------- */

.hm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-hover);
    border-color: transparent;
}

.hm-card__media {
    position: relative;
    background: #faf9fd;
}

.hm-card__img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}

.hm-card:hover .hm-card__img img {
    transform: scale(1.05);
}

.hm-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hm-white);
    background: var(--hm-primary);
    padding: 5px 10px;
    border-radius: 999px;
}

.hm-badge--hot,
.hm-badge--sale,
.hm-badge--offer { background: var(--hm-pink); }
.hm-badge--new   { background: #19b8b2; }
.hm-badge--best  { background: var(--hm-accent); }
.hm-badge--muted { background: #8d8a9e; }

.hm-card__wish {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--hm-white);
    color: var(--hm-ink);
    box-shadow: var(--hm-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hm-card__wish:hover {
    transform: scale(1.1);
}

.hm-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.hm-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #ffb400;
    font-size: 12px;
    margin-bottom: 6px;
}

.hm-stars span {
    color: var(--hm-muted);
    margin-left: 4px;
}

.hm-card__title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    min-height: 2.9em;
    margin-bottom: 12px !important;
}

.hm-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-card__title a:hover {
    color: var(--hm-primary);
}

.hm-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.hm-card__form {
    margin: 0;
}

.hm-price strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-ink);
}

.hm-price del {
    display: block;
    font-size: 13px;
    color: var(--hm-muted);
}

.hm-cart-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 0;
    background: var(--hm-primary);
    color: var(--hm-white) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hm-cart-btn:hover {
    background: var(--hm-primary-dark);
    transform: scale(1.06);
}

.hm-card :where(img) {
    display: block;
    max-width: 100%;
}

.hm-card :where(a) {
    color: inherit;
    text-decoration: none;
}

.hm-card__off {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    color: #138a52;
    background: #e5f7ee;
    padding: 4px 9px;
    border-radius: 8px;
}

.hm-card__options {
    font-size: 12px;
    color: var(--hm-muted);
    margin: -6px 0 10px;
}

.hm-price small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--hm-muted);
    line-height: 1;
    margin-bottom: 2px;
}

@media (max-width: 575px) {
    .hm-card__body {
        padding: 10px 12px 12px;
    }

    .hm-card__title {
        font-size: 13px !important;
    }

    .hm-price strong {
        font-size: 15px;
    }

    .hm-cart-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .hm-card__wish {
        width: 32px;
        height: 32px;
    }

    .hm-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}
