/* Storefront-wide responsive safeguards.
   Loaded last so every public page shares the same viewport behaviour. */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Package product contents */
.package-items-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.package-items-toggle-chevron {
    margin-left: 2px;
    transition: transform .2s ease;
}
.package-items-toggle.is-expanded .package-items-toggle-chevron { transform: rotate(180deg); }
.package-includes-section {
    margin-top: 30px;
    scroll-margin-top: 125px;
}
.package-includes-section[hidden] { display: none !important; }
.package-includes-panel {
    overflow: hidden;
    padding: 26px;
    border: 1px solid #eee5df;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #fffaf7 100%);
    box-shadow: 0 10px 35px rgba(67, 35, 21, .06);
}
.package-includes-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.package-includes-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color, #c51220);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.package-includes-header h3 {
    margin: 0;
    color: #241a16;
    font-size: 24px;
    line-height: 1.25;
}
.package-items-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #eadfd8;
    border-radius: 999px;
    background: #fff;
    color: #6f615a;
    font-size: 12px;
    font-weight: 600;
}
.package-includes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.package-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 14px;
    border: 1px solid #ece4df;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(45, 27, 18, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.package-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 18, 32, .28);
    box-shadow: 0 9px 22px rgba(45, 27, 18, .09);
}
.package-product-link { cursor: pointer; }
.package-product-link:focus-visible {
    outline: 2px solid var(--primary-color, #c51220);
    outline-offset: 2px;
}
.package-product-image-wrap {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    margin-right: 16px;
}
.package-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #f0e8e3;
    border-radius: 10px;
    background: #faf7f4;
}
.package-product-quantity {
    position: absolute;
    right: -7px;
    bottom: -7px;
    min-width: 34px;
    padding: 5px 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--primary-color, #c51220);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 3px 8px rgba(197, 18, 32, .22);
}
.package-product-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}
.package-product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.package-product-check {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #e9f7ee;
    color: #198754;
    font-size: 9px;
}
.package-product-title-row h4 {
    margin: 0;
    color: #251c18;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}
.package-product-title-row h4 a {
    color: inherit;
    text-decoration: none;
}
.package-product-title-row h4 a:hover { color: var(--primary-color, #c51220); }
.package-product-description {
    margin: 6px 0 10px 28px;
    color: #7b6e67;
    font-size: 12px;
    line-height: 1.5;
}
.package-product-meta {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
    margin-left: 28px;
}
.package-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.package-stock-badge.is-available { background: #edf8f1; color: #187a42; }
.package-stock-badge.is-unavailable { background: #fff0f0; color: #ba2632; }
@media (max-width: 991.98px) {
    .package-includes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .package-includes-section { margin-top: 20px; }
    .package-includes-panel { padding: 18px 12px; border-radius: 12px; }
    .package-includes-header { align-items: center; }
    .package-includes-header h3 { font-size: 20px; }
    .package-product-card { padding: 11px; }
    .package-product-image-wrap {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
        margin-right: 13px;
    }
    .package-product-description,
    .package-product-meta { margin-left: 0; }
    .package-product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

html,
body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

iframe,
video {
    width: 100%;
}

.container,
.container-fluid,
.row > [class*="col-"],
.card,
.card-body,
.widget,
.entry-content,
.product-card,
.product-card-inner {
    min-width: 0;
}

.entry-title,
.product-title,
.product-card-title,
.breadcrumbs,
.widget-title,
.user-data,
.table td,
.table th {
    overflow-wrap: anywhere;
}

.table-responsive,
.u-table-res {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.form-control,
select,
textarea,
input,
.input-group {
    max-width: 100%;
}

.modal-dialog,
.white-popup {
    max-width: calc(100vw - 30px);
}

.white-popup,
.announcement-with-content,
.announcement-with-content .right-area {
    min-width: 0;
    box-sizing: border-box;
}

.announcement-with-content .right-area h3,
.announcement-with-content .right-area p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.site-logo img,
.gateway_image {
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    .site-header .toolbar-item {
        margin-left: 10px;
    }

    .shop-top-filter-wrapper {
        gap: 12px;
    }

    .checkut-page > .row > [class*="col-lg-4"],
    .checkut-page > .row > [class*="col-xl-4"] {
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .site-header .topbar .d-flex.justify-content-between {
        align-items: center;
        gap: 12px;
    }

    .site-header .site-branding {
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-header .site-logo {
        max-width: 100%;
    }

    .site-header .toolbar {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-header .toolbar-item {
        width: 44px;
        min-width: 44px;
        margin-left: 2px;
    }

    .site-header .mobile-menu,
    .sidebar-offcanvas {
        width: min(320px, calc(100vw - 36px));
        max-width: calc(100vw - 36px);
    }

    .toolbar-dropdown.cart-dropdown {
        max-width: calc(100vw - 24px);
    }

    .page-title {
        margin-bottom: 32px;
    }

    .shop-top-filter-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .shop-top-filter-wrapper > * {
        min-width: 0;
    }

    .checkut-page > .row > .col-xl-4,
    .checkut-page > .row > .col-lg-4 {
        margin-top: 24px;
    }

    .user-info-wrapper {
        margin-bottom: 24px;
    }

    .site-footer .widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    h1,
    .h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.18;
    }

    h2,
    .h2 {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        line-height: 1.25;
    }

    .padding-top-3x {
        padding-top: 48px !important;
    }

    .padding-bottom-3x {
        padding-bottom: 48px !important;
    }

    .page-title .container,
    .page-title .column {
        min-width: 0;
    }

    .breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .details-page-top-right-content {
        height: auto !important;
        margin-top: 20px;
        padding: 22px 18px !important;
    }

    .details-page-top-right-content > div,
    .details-page-top-right-content .product-title {
        width: 100%;
        min-width: 0;
    }

    .p-action-button {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .p-action-button .btn,
    .p-action-button button,
    .p-action-button a.btn {
        flex: 1 1 180px;
        margin: 0 !important;
    }

    .p-d-f-area {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
    }

    .product-details-slider img,
    .gallery-wrapper img {
        width: 100%;
        height: auto;
    }

    .product-details-tabs .nav-tabs,
    .product-details .nav-tabs,
    .product-tab .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-details-tabs .nav-item,
    .product-details .nav-item,
    .product-tab .nav-item {
        flex: 0 0 auto;
    }

    .shopping-cart .product-item {
        min-width: 250px;
    }

    .shopping-cart-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }

    .shopping-cart-footer > .column,
    .shopping-cart-footer > form,
    .shopping-cart-footer .coupon-form {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        text-align: left !important;
    }

    .shopping-cart-footer .btn {
        white-space: normal;
    }

    .checkut-page .steps {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkut-page .steps .step {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .checkut-page .card-body,
    .checkut-page section.card {
        padding: 20px !important;
    }

    .checkut-page .payment-methods {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .checkut-page .single-payment-method {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .blog-details-box,
    .contact-page .card,
    .faq-accordion .card-body {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .user-info-wrapper .user-info {
        display: flex;
        align-items: center;
    }

    .u-table-res table,
    .order-table,
    .invoice-table {
        min-width: 680px;
    }

    .site-footer .row > [class*="col-"] {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .row {
        --bs-gutter-x: 1rem;
    }

    .puja-announcement-inner {
        min-height: 32px;
        text-align: center;
    }

    .site-header .topbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .site-header .topbar .d-flex.justify-content-between {
        gap: 4px;
    }

    .body_theme1 .site-header .site-branding {
        flex: 0 0 140px;
        width: 140px;
    }

    .body_theme1 .site-header .site-logo {
        width: 136px !important;
        max-width: 136px !important;
        height: 56px !important;
        overflow: hidden;
    }

    .body_theme1 .site-header .site-logo img {
        width: 136px !important;
        max-width: 136px !important;
        height: 56px !important;
        object-fit: cover !important;
        object-position: center 45% !important;
    }

    .site-header .toolbar-item {
        width: 38px;
        min-width: 38px;
        margin-left: 0;
    }

    .site-header .toolbar-item > a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-header .toolbar-item .text-label {
        font-size: 9px;
    }

    .toolbar-dropdown.cart-dropdown {
        right: -4px;
        width: calc(100vw - 24px);
    }

    .mobile-search,
    .search-box-wrap {
        max-width: 100vw;
    }

    .shop-top-filter-wrapper {
        width: 100%;
        gap: 10px;
    }

    .shop-top-filter-wrapper > .row {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .shop-top-filter-wrapper > .row > .col-md-10,
    .shop-top-filter-wrapper > .row > .col-md-2 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .shop-top-filter-wrapper .quickFilter {
        display: block;
        width: 100%;
        text-align: center;
    }

    .shop-top-filter-wrapper .quickFilter .quickFilter-title,
    .shop-top-filter-wrapper .shop-sorting #sorting {
        margin-right: auto;
        margin-left: auto;
    }

    .shop-top-filter-wrapper .shop-sorting {
        width: 100%;
        text-align: center;
    }

    .shop-top-filter-wrapper .btn,
    .shop-top-filter-wrapper select,
    .shop-top-filter-wrapper .form-control {
        max-width: 100%;
    }

    #main_div .puja-product-body {
        padding: 11px 10px 12px;
    }

    #main_div .puja-product-category {
        font-size: 9px;
    }

    #main_div .puja-product-title {
        min-height: 36px;
        font-size: 12px;
        line-height: 1.45;
    }

    #main_div .puja-product-price {
        font-size: 13px;
    }

    #main_div .puja-cart-button {
        min-height: 36px;
        padding: 8px 5px;
        font-size: 9px;
    }

    .shopping-cart-footer .coupon-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .shopping-cart-footer .coupon-form .form-control,
    .shopping-cart-footer .coupon-form .btn {
        width: 100%;
        margin: 0 !important;
    }

    .shopping-cart-footer .btn-group,
    .shopping-cart-footer .d-flex {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .checkut-page .card-body,
    .checkut-page section.card {
        padding: 16px !important;
    }

    .checkut-page .shipping-data input,
    .checkut-page .shipping-data select,
    .shipping-data input,
    .shipping-data select {
        width: 100% !important;
        min-width: 0 !important;
    }

    .checkut-page .payment-methods {
        grid-template-columns: 1fr;
    }

    .checkut-page .entry {
        align-items: flex-start;
    }

    .checkut-page .entry-thumb {
        flex: 0 0 64px;
        max-width: 64px;
    }

    .modal-dialog,
    .white-popup {
        width: auto;
        margin-right: 12px;
        margin-left: 12px;
        max-width: calc(100vw - 24px);
    }

    .modal-body,
    .modal-header,
    .modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-info-wrapper .user-info {
        padding: 18px 14px;
    }

    .user-info-wrapper .user-avatar {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .user-info-wrapper .user-data h4 {
        font-size: 16px;
    }

    .card-body.d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 12px;
    }

    .announcement-with-content {
        display: block;
        width: 100%;
        padding: 22px 18px;
    }

    .announcement-with-content .left-area,
    .announcement-with-content .right-area {
        width: 100%;
    }

    .announcement-with-content .right-area {
        padding-left: 0;
    }

    .announcement-with-content .right-area h3 {
        font-size: clamp(19px, 6vw, 24px);
        line-height: 1.25;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .footer-social-links,
    .site-footer .gateway_image {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 379.98px) {
    .container,
    .container-fluid {
        padding-right: 10px;
        padding-left: 10px;
    }

    .body_theme1 .site-header .site-branding {
        flex-basis: 128px;
        width: 128px;
    }

    .body_theme1 .site-header .site-logo,
    .body_theme1 .site-header .site-logo img {
        width: 124px !important;
        max-width: 124px !important;
        height: 52px !important;
    }

    .site-header .toolbar-item {
        width: 35px;
        min-width: 35px;
    }

    #main_div.row {
        --bs-gutter-x: .65rem;
    }

    #main_div .puja-product-body {
        padding-right: 8px;
        padding-left: 8px;
    }

    .shopping-cart-footer .coupon-form {
        grid-template-columns: 1fr;
    }

    .p-action-button .btn,
    .p-action-button button,
    .p-action-button a.btn {
        flex-basis: 100%;
        width: 100%;
    }
}
