/* Instant Pharmacy — Shop page */

.ip-shop-page {
    background:
        radial-gradient(circle at top right, rgba(75, 199, 201, 0.1), transparent 28%),
        radial-gradient(circle at bottom left, rgba(9, 101, 107, 0.05), transparent 24%),
        #f4f7f8;
}

.ip-shop-section {
    margin-bottom: 0.5rem;
}

.ip-section-title {
    font-family: 'Poppins', var(--font-heading, system-ui), sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: -0.02em;
    color: #09656b;
    margin-bottom: 0.5rem;
}

.ip-product-card {
    border: 1px solid rgba(9, 101, 107, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(9, 101, 107, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ip-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(9, 101, 107, 0.14) !important;
}

.ip-product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(9, 101, 107, 0.06);
}

.ip-product-card__media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ip-product-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.ip-product-card:hover .ip-product-card__image {
    transform: scale(1.04);
}

.ip-product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #09656b !important;
    border: 1px solid rgba(9, 101, 107, 0.12);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.75rem !important;
    white-space: nowrap;
}

.ip-product-card .card-body {
    padding: 1.25rem 1.35rem 1.35rem !important;
}

.ip-product-card .btn-ip-shop {
    background: linear-gradient(135deg, #09656b 0%, #4bc7c9 100%);
    border: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(9, 101, 107, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.ip-product-card .btn-ip-shop:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(9, 101, 107, 0.28);
}

.ip-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Hero */
.ip-shop-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    margin-bottom: 2rem;
}

.ip-shop-hero--light { background: linear-gradient(135deg, #e8f6f6 0%, #ffffff 100%); }
.ip-shop-hero--white { background: #fff; }
.ip-shop-hero--gradient {
    background:
        radial-gradient(circle at top right, rgba(75, 199, 201, 0.2), transparent 36%),
        radial-gradient(circle at bottom left, rgba(9, 101, 107, 0.1), transparent 30%),
        linear-gradient(135deg, #eef8f8 0%, #ffffff 100%);
}
.ip-shop-hero--brand {
    background: linear-gradient(135deg, #09656b 0%, #4bc7c9 100%);
    color: #fff;
}

.ip-shop-hero--image-bg {
    color: #fff;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.ip-shop-hero--image-bg .ip-shop-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ip-shop-hero--image-bg .ip-shop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 101, 107, 0.82) 0%, rgba(9, 101, 107, 0.45) 100%);
}

.ip-shop-hero--image-bg .ip-shop-hero__content {
    position: relative;
    z-index: 2;
}

.ip-shop-hero--split {
    background: linear-gradient(135deg, #eef8f8 0%, #ffffff 100%);
}

.ip-shop-hero--split .ip-shop-hero__media-col {
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(9, 101, 107, 0.08);
    box-shadow: 0 12px 32px rgba(9, 101, 107, 0.1);
}

.ip-shop-hero--split .ip-shop-hero__media-col img,
.ip-shop-hero--split .ip-shop-hero__media-col video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.ip-shop-hero--media-below .ip-shop-hero__media-wrap {
    margin-top: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(9, 101, 107, 0.08);
    box-shadow: 0 12px 32px rgba(9, 101, 107, 0.1);
}

.ip-shop-hero__media-wrap img,
.ip-shop-hero__media-wrap video,
.ip-shop-hero__media-wrap iframe {
    width: 100%;
    display: block;
    border: 0;
}

.ip-shop-hero__media-wrap--video {
    aspect-ratio: 16 / 9;
    background: #000;
}

.ip-shop-hero__media-wrap--video iframe,
.ip-shop-hero__media-wrap--video video {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.ip-shop-hero__title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.ip-shop-hero--brand .ip-shop-hero__title,
.ip-shop-hero--image-bg .ip-shop-hero__title,
.ip-shop-hero--image-bg .ip-shop-hero__subtitle {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.ip-shop-hero:not(.ip-shop-hero--brand):not(.ip-shop-hero--image-bg) .ip-shop-hero__title {
    background: linear-gradient(135deg, #09656b 0%, #4bc7c9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ip-shop-hero__subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 720px;
}

.ip-shop-hero--brand .ip-shop-hero__subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.ip-shop-hero__cta {
    margin-top: 1.25rem;
}

.ip-shop-hero__cta .btn {
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
}

.ip-shop-hero--brand .ip-shop-hero__cta .btn,
.ip-shop-hero--image-bg .ip-shop-hero__cta .btn {
    background: #fff;
    color: #09656b;
    border: none;
}

.ip-shop-hero:not(.ip-shop-hero--brand):not(.ip-shop-hero--image-bg) .ip-shop-hero__cta .btn {
    background: linear-gradient(135deg, #09656b 0%, #4bc7c9 100%);
    color: #fff;
    border: none;
}

@media (max-width: 767.98px) {
    .ip-shop-hero {
        border-radius: 0 0 20px 20px;
    }

    .ip-shop-hero--split .ip-shop-hero__media-col {
        min-height: 220px;
        margin-top: 1rem;
    }
}

/* Sidebar layout */
.ip-sidebar-banner {
    background: #fff;
    border: 1px solid rgba(9, 101, 107, 0.1);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(9, 101, 107, 0.08);
}

.ip-sidebar-banner--sticky {
    position: sticky;
    top: 96px;
}

.ip-sidebar-banner__media img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 220px;
}

.ip-sidebar-banner__video {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.ip-sidebar-banner__video iframe,
.ip-sidebar-banner__video video {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 0;
    display: block;
}

.ip-sidebar-main {
    border-radius: 20px !important;
}

/* Column grid */
.ip-column-card {
    background: #fff;
    border: 1px solid rgba(9, 101, 107, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(9, 101, 107, 0.06);
}

.ip-column-card__media img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    max-height: 220px;
    background: #f8fbfc;
}

.ip-column-card__video {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.ip-column-card__video iframe,
.ip-column-card__video video {
    width: 100%;
    height: 100%;
    min-height: 160px;
    border: 0;
}

/* Testimonials */
.ip-testimonial {
    background: #fff;
    border: 1px solid rgba(9, 101, 107, 0.08);
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: 0 8px 24px rgba(9, 101, 107, 0.06);
}

.ip-testimonial__quote {
    color: #374151;
    line-height: 1.65;
    font-style: italic;
}

.ip-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Gallery */
.ip-gallery-item img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: #f8fbfc;
    border: 1px solid rgba(9, 101, 107, 0.08);
}

/* Video */
.ip-video-frame {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 12px 32px rgba(9, 101, 107, 0.12);
}

.ip-video-frame iframe,
.ip-video-frame video {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: 0;
    display: block;
}

.ip-video-frame--sm {
    min-height: 0;
}

.ip-video-grid-card {
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid rgba(9, 101, 107, 0.08);
    box-shadow: 0 8px 24px rgba(9, 101, 107, 0.06);
}

/* Device visibility */
@media (max-width: 767.98px) {
    .ip-visibility-desktop_only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .ip-visibility-mobile_only {
        display: none !important;
    }
}

/* Responsive desktop/mobile media */
.ip-media-desktop {
    display: block;
}

.ip-media-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .ip-media-desktop {
        display: none !important;
    }

    .ip-media-mobile {
        display: block !important;
    }
}

.ip-shop-hero__bg.ip-media-desktop,
.ip-shop-hero__bg.ip-media-mobile {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive product/grid columns */
.ip-responsive-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(var(--ip-cols-mobile, 1), minmax(0, 1fr));
}

.ip-responsive-grid__cell {
    min-width: 0;
}

.ip-responsive-grid__cell--full {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .ip-responsive-grid {
        grid-template-columns: repeat(var(--ip-cols-desktop, 3), minmax(0, 1fr));
    }

    .ip-responsive-grid--spans .ip-responsive-grid__cell {
        grid-column: span min(var(--ip-span, 1), var(--ip-cols-desktop, 3));
    }
}

@media (max-width: 767.98px) {
    .ip-sidebar-banner--sticky {
        position: static;
        top: auto;
    }

    .ip-product-card .btn-ip-shop {
        width: 100%;
        text-align: center;
    }

    .ip-product-card__footer {
        flex-direction: column;
        align-items: stretch;
    }
}
