/* ==========================================================================
   India Pet Shop — Home page
   All rules are scoped to .ips-home so the shared header/footer are untouched.
   ========================================================================== */

.ips-home {
    font-family: var(--hm-font);
    color: var(--hm-ink);
    background: var(--hm-white);
    overflow-x: hidden;
}

.ips-home *,
.ips-home *::before,
.ips-home *::after {
    box-sizing: border-box;
}

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

.ips-home :where(a) {
    text-decoration: none;
    color: inherit;
}

.ips-home :where(h1, h2, h3, h4) {
    font-family: var(--hm-font);
    color: var(--hm-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.ips-home :where(p) {
    margin: 0;
}

.hm-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hm-section {
    padding: 36px 0;
}

.hm-section--tight {
    padding: 16px 0;
}

.hm-section--last {
    padding-bottom: 56px;
}

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

.hm-hero {
    position: relative;
    background: linear-gradient(180deg, #f5f1ff 0%, #f8f6ff 100%);
    /* --hm-header-h is 0 now that the header is in normal flow (see header.css). */
    padding: calc(var(--hm-header-h, 120px) + 40px) 0 90px;
    overflow: hidden;
}

.hm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hm-hero__title {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 18px;
}

.hm-hero__title span {
    color: var(--hm-primary);
}

.hm-hero__text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--hm-muted);
    max-width: 460px;
    margin-bottom: 30px;
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.hm-hero__trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

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

.hm-hero__trust i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hm-white);
    color: var(--hm-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hm-shadow);
    font-size: 17px;
}

.hm-hero__trust strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.hm-hero__trust span {
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
}

.hm-hero__blob {
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    max-width: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #7a52ec 0%, var(--hm-primary) 60%, var(--hm-primary-dark) 100%);
    bottom: -40px;
}

.hm-showcase {
    position: relative;
    width: min(400px, 78%);
    aspect-ratio: 1;
    z-index: 1;
}

.hm-showcase__item {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--hm-white);
    box-shadow: 0 24px 50px rgba(30, 10, 90, 0.35);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hm-showcase__item.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hm-showcase__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.hm-showcase__label {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    background: var(--hm-white);
    color: var(--hm-ink);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--hm-shadow);
}

.hm-bubble {
    position: absolute;
    top: 10px;
    right: 6%;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid #19b8b2;
    background: var(--hm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    transform: rotate(8deg);
    box-shadow: var(--hm-shadow);
}

.hm-bubble strong {
    font-size: 22px;
    font-weight: 800;
    color: #19b8b2;
    line-height: 1;
}

.hm-bubble span {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.hm-hero__dot {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
}

.hm-hero__dot--a {
    width: 16px;
    height: 16px;
    background: var(--hm-white);
    left: 12%;
    bottom: 22%;
}

.hm-hero__dot--b {
    width: 14px;
    height: 14px;
    background: var(--hm-primary);
    right: 4%;
    bottom: 36%;
}

.hm-hero__heart {
    position: absolute;
    left: 8%;
    top: 14%;
    font-size: 34px;
    color: var(--hm-primary);
    transform: rotate(-14deg);
    z-index: 2;
}

.hm-paw {
    position: absolute;
    color: rgba(91, 47, 214, 0.08);
    font-size: 64px;
    pointer-events: none;
}

.hm-paw--1 { top: 40px; left: 3%; transform: rotate(-25deg); }
.hm-paw--2 { bottom: 120px; left: 38%; font-size: 48px; transform: rotate(15deg); }
.hm-paw--3 { top: 70px; right: 4%; transform: rotate(20deg); }

.hm-hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    background: var(--hm-white);
    clip-path: polygon(0 60%, 8% 40%, 18% 62%, 30% 38%, 42% 60%, 55% 35%, 68% 58%, 80% 36%, 92% 60%, 100% 42%, 100% 100%, 0 100%);
}

/* ---------- Best-seller strip ---------- */

.hm-strip {
    position: relative;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    padding: 34px 18px 18px;
    margin-top: 10px;
}

.hm-strip__tag {
    position: absolute;
    top: -16px;
    left: 18px;
    background: var(--hm-pink);
    color: var(--hm-white);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 8px 18px rgba(255, 46, 116, 0.3);
}

.hm-strip__tag i {
    margin-left: 6px;
    font-size: 12px;
}

.hm-strip__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hm-strip__track::-webkit-scrollbar {
    display: none;
}

.hm-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--hm-radius-sm);
    scroll-snap-align: start;
    transition: background-color 0.2s ease;
}

.hm-mini:hover {
    background: var(--hm-bg-soft);
}

.hm-mini img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
    background: #faf9fd;
    flex-shrink: 0;
}

.hm-mini h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-mini strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-primary);
}

/* ---------- Category tiles ---------- */

.hm-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.hm-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 230px;
    border-radius: var(--hm-radius);
    padding: 28px;
    overflow: hidden;
    color: var(--hm-white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-hover);
}

.hm-tile--third { grid-column: span 2; }
.hm-tile--half  { grid-column: span 3; }
.hm-tile--full  { grid-column: span 6; }

.hm-tile--sky   { background: linear-gradient(135deg, #a9c3ea, #8eb0e3); }
.hm-tile--teal  { background: linear-gradient(135deg, #22c3bd, #13a9a4); }
.hm-tile--sun   { background: linear-gradient(135deg, #fbc14a, #f4a81c); }
.hm-tile--coral { background: linear-gradient(135deg, #f26b36, #e2501f); }
.hm-tile--grape { background: linear-gradient(135deg, #7044e6, #5b2fd6); }

.hm-tile__copy {
    position: relative;
    z-index: 1;
    max-width: 58%;
}

.hm-tile__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.22);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.ips-home .hm-tile h3 {
    color: var(--hm-white);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}

.hm-tile p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 18px;
}

.hm-tile img {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 42%;
    max-width: 210px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.4s ease;
}

.hm-tile:hover img {
    transform: scale(1.05) rotate(-3deg);
}

.hm-tile--full img,
.hm-tile--half img {
    right: 24px;
    bottom: 50%;
    transform: translateY(50%);
    width: 190px;
}

.hm-tile--full:hover img,
.hm-tile--half:hover img {
    transform: translateY(50%) scale(1.05) rotate(-3deg);
}

/* ---------- Offer slider ---------- */

.hm-slider {
    position: relative;
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
}

.hm-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.hm-slider__track::-webkit-scrollbar {
    display: none;
}

.hm-slider__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.hm-slider__slide img {
    width: 100%;
    aspect-ratio: 1366 / 380;
    object-fit: cover;
}

.hm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--hm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--hm-shadow);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hm-arrow:hover {
    background: var(--hm-primary);
    color: var(--hm-white);
}

.hm-arrow--prev { left: 16px; }
.hm-arrow--next { right: 16px; }

.hm-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hm-slider__dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hm-slider__dots button.is-active {
    width: 26px;
    background: var(--hm-white);
}

/* ---------- Coupons ---------- */

.hm-coupons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.hm-coupon {
    display: flex;
    align-items: stretch;
    border-radius: var(--hm-radius-sm);
    background: var(--hm-white);
    border: 1px dashed #cbbcf6;
    overflow: hidden;
}

.hm-coupon__value {
    background: var(--hm-primary);
    color: var(--hm-white);
    font-size: 26px;
    font-weight: 800;
    padding: 18px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hm-coupon__value small {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.hm-coupon__info {
    padding: 14px 16px;
}

.hm-coupon__info h4 {
    font-size: 15px;
    font-weight: 600;
}

.hm-coupon__info p {
    font-size: 12px;
    color: var(--hm-muted);
    margin: 2px 0 10px;
}

.hm-coupon__code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--hm-primary-soft);
    color: var(--hm-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
}

/* ---------- Product carousel & card ---------- */

.hm-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 22px) / 4);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 18px;
    scrollbar-width: none;
}

.hm-row::-webkit-scrollbar {
    display: none;
}

/* ---------- Promo / deal / event ---------- */

.hm-promo {
    display: block;
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
}

.hm-promo img {
    width: 100%;
    transition: transform 0.5s ease;
}

.hm-promo:hover img {
    transform: scale(1.02);
}

.hm-deal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    background: var(--hm-bg-soft);
    border-radius: 24px;
    padding: 36px;
}

.hm-deal + .hm-deal {
    margin-top: 24px;
}

.hm-deal--reverse .hm-deal__media {
    order: 2;
}

.hm-deal__media {
    border-radius: var(--hm-radius);
    overflow: hidden;
    background: var(--hm-white);
}

.hm-deal__media img {
    width: 100%;
}

.hm-deal__copy h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.hm-deal__summary {
    color: var(--hm-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hm-deal__price {
    font-size: 16px;
    margin-bottom: 22px !important;
}

.hm-deal__price strong {
    font-size: 26px;
    color: var(--hm-pink);
    margin-left: 6px;
}

.hm-event {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 48px;
    color: var(--hm-white);
}

.hm-event::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 27, 47, 0.75), rgba(29, 27, 47, 0.1));
}

.hm-event__content {
    position: relative;
    max-width: 520px;
}

.hm-event__content--center {
    margin: 0 auto;
    text-align: center;
}

.hm-event--video::before {
    background: rgba(29, 27, 47, 0.55);
}

.hm-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--hm-white);
    color: var(--hm-primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

/* ---------- Brands ---------- */

.hm-brands {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.hm-brands::-webkit-scrollbar {
    display: none;
}

.hm-brand {
    scroll-snap-align: start;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-brand:hover {
    transform: translateY(-3px);
    box-shadow: var(--hm-shadow);
}

.hm-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ---------- Blog ---------- */

.hm-blogs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hm-blog {
    display: flex;
    flex-direction: column;
    background: var(--hm-white);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-blog:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-hover);
}

.hm-blog__img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.hm-blog__date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: var(--hm-white);
    color: var(--hm-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.hm-blog__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hm-blog__body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hm-blog__body p {
    font-size: 14px;
    color: var(--hm-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.hm-blog__body .hm-link {
    margin-top: auto;
}

/* ---------- Features ---------- */

.hm-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hm-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: var(--hm-radius-sm);
}

.hm-feature i {
    font-size: 26px;
    flex-shrink: 0;
}

.hm-feature strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.hm-feature span {
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-feature--grape { background: #f1ecff; }
.hm-feature--grape i { color: var(--hm-primary); }
.hm-feature--teal  { background: #e3f7f6; }
.hm-feature--teal i { color: #13a9a4; }
.hm-feature--sun   { background: #fff6df; }
.hm-feature--sun i { color: #f4a81c; }
.hm-feature--coral { background: #ffece6; }
.hm-feature--coral i { color: #e2501f; }
.hm-feature--sky   { background: #e8f0fb; }
.hm-feature--sky i { color: #4a7cc9; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .hm-row {
        grid-auto-columns: calc((100% - 2 * 22px) / 3);
    }

    .hm-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hm-hero {
        padding: calc(var(--hm-header-h, 100px) + 24px) 0 80px;
    }

    .hm-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .hm-hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .hm-hero__actions,
    .hm-hero__trust {
        justify-content: center;
    }

    .hm-hero__visual {
        min-height: 380px;
    }

    .hm-tile--third {
        grid-column: span 3;
    }

    .hm-tile--third:last-of-type:nth-of-type(3) {
        grid-column: span 6;
    }

    .hm-deal {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    .hm-deal--reverse .hm-deal__media {
        order: 0;
    }

    .hm-blogs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hm-container {
        padding: 0 16px;
    }

    .hm-slider__slide img {
        aspect-ratio: 1;
        object-fit: contain;
        background: var(--hm-bg-soft);
    }

    .hm-section {
        padding: 24px 0;
    }

    .hm-title {
        font-size: 22px;
    }

    .hm-head__actions .hm-nav {
        display: none;
    }

    .hm-row {
        grid-auto-columns: 62%;
        gap: 14px;
    }

    .hm-tiles {
        gap: 14px;
    }

    .hm-tile,
    .hm-tile--third,
    .hm-tile--half,
    .hm-tile--full {
        grid-column: span 6;
        min-height: 180px;
        padding: 22px;
    }

    .ips-home .hm-tile h3 {
        font-size: 24px;
    }

    .hm-tile img,
    .hm-tile--full img,
    .hm-tile--half img {
        width: 118px;
        right: 12px;
    }

    .hm-arrow {
        display: none;
    }

    .hm-blogs {
        grid-template-columns: 1fr;
    }

    .hm-features {
        grid-template-columns: 1fr 1fr;
    }

    .hm-event {
        padding: 28px;
    }

    .hm-bubble {
        width: 88px;
        height: 88px;
    }

    .hm-bubble strong {
        font-size: 18px;
    }
}

@media (max-width: 479px) {
    .hm-hero__trust {
        gap: 14px;
    }

    .hm-hero__trust li {
        width: 100%;
        justify-content: center;
    }

    .hm-row {
        grid-auto-columns: 78%;
    }

    .hm-features {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ips-home *,
    .ips-home *::before,
    .ips-home *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
