/* ==========================================================================
   PRIME RETAIL - RESPONSIVE
   ========================================================================== */

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

img.profile-image-preview {
    max-width: none;
    height: 100%;
}

.container {
    max-width: 1400px;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

/* ----- Banner / promo images ----- */
.newsletter-banner-img,
.new-arrivals-section img.banner-fluid,
section img.w-100 {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Tablet ----- */
@media (max-width: 991.98px) {
    .site-trust-banner {
        padding-bottom: 1rem;
    }

    .site-trust-inner {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .site-trust-item {
        padding: 16px 18px;
    }

    .site-trust-item + .site-trust-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
    }

    .site-trust-title {
        font-size: 0.98rem;
    }

    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-bar-content {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .top-bar-content::-webkit-scrollbar {
        display: none;
    }

    .top-bar-left,
    .top-bar-right {
        flex-shrink: 0;
        gap: 16px;
    }

    .main-header {
        padding: 10px 0;
    }

    .main-header-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo actions"
            "search search";
        align-items: center;
        column-gap: 12px;
        row-gap: 10px;
        flex-wrap: unset;
    }

    .main-header-content .logo {
        grid-area: logo;
        min-width: 0;
        max-width: 100%;
    }

    .main-header-content .logo a {
        display: inline-flex;
        max-width: 100%;
    }

    .main-header-content .main-logo-img {
        height: 40px;
        width: auto;
        max-width: min(180px, 100%);
        object-fit: contain;
    }

    .main-header-content .search-container {
        grid-area: search;
        order: unset;
        flex: unset;
        max-width: none;
        width: 100%;
    }

    .main-header-content .header-actions {
        grid-area: actions;
        gap: 10px;
        margin-left: 0;
        justify-content: flex-end;
        align-items: center;
    }

    .shipping-address-layout.is-form-open .shipping-address-list-col,
    .shipping-address-layout.is-form-open .shipping-address-form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .shipping-address-form-col {
        order: 2;
    }

    .shipping-address-list-col {
        order: 1;
    }

    .action-item .action-label,
    .user-profile .user-info,
    .user-profile .arrow {
        display: none;
    }

    .action-item {
        gap: 0;
    }

    .dropdown-toggle-custom {
        padding: 2px;
        gap: 0;
    }

    .profile-img {
        width: 32px;
        height: 32px;
    }

    .category-nav .container,
    .category-nav .site-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .category-nav .container > .d-flex,
    .category-nav .site-container > .d-flex {
        flex: 1 1 auto;
        min-width: 0;
    }

    .btn-category {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 13px;
        white-space: nowrap;
        width: 100%;
        max-width: 100%;
    }

    .btn-hot-deals {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 1.5rem !important;
    }

    .profile-hub-section .col-lg-9,
    .profile-hub-section .col-lg-8,
    .profile-hub-section .col-lg-3,
    .profile-hub-section .col-lg-4 {
        width: 100%;
        max-width: 100%;
    }

    .profile-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* ----- Mobile ----- */
@media (max-width: 767.98px) {
    .top-bar-left .info-item:nth-child(n + 2),
    .top-bar-right .delivery-selector {
        display: none;
    }

    .top-bar-content {
        justify-content: space-between;
    }

    .main-header {
        padding: 8px 0;
    }

    .main-header-content {
        column-gap: 8px;
        row-gap: 8px;
    }

    .main-header-content .main-logo-img {
        height: 36px;
        max-width: min(150px, 48vw);
    }

    .main-header-content .header-actions {
        gap: 8px;
    }

    .action-icon img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .profile-img {
        width: 30px;
        height: 30px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .header-actions {
        gap: 8px;
    }

    .search-input {
        font-size: 13px;
        padding: 10px 14px;
        padding-right: 52px;
    }

    .search-btn {
        width: 44px;
    }

    .profile-save-btn {
        max-width: none;
        width: 100%;
    }

    .profile-page-header .profile-hub-title {
        font-size: 1.35rem;
    }

    .category-nav {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .category-nav .container,
    .category-nav .site-container {
        flex-wrap: nowrap;
        overflow: visible;
    }

    .btn-category {
        font-size: 12px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .btn-hot-deals {
        font-size: 12px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-carousel-wrapper {
        border-radius: 10px;
    }

    .hero-slide-content .col-lg-12 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        min-height: 260px;
        background-size: cover !important;
    }

    .hero-title {
        font-size: 1.55rem !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem !important;
    }

    .btn-explore {
        padding: 10px 16px !important;
        font-size: 13px;
    }

    .grid-scroll-container {
        justify-content: flex-start;
        gap: 14px;
        padding-bottom: 4px;
    }

    .showcase-card {
        padding: 12px;
    }

    .card-title-custom {
        font-size: 1.15rem;
    }

    .newsletter-subscription-wrapper {
        width: 100%;
    }

    .newsletter-subscription-wrapper .row {
        margin: 0;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-form-fields {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .newsletter-input {
        width: 100% !important;
        min-width: 0;
        flex: none;
        border-radius: 8px !important;
    }

    .btn-subscribe {
        width: 100%;
        flex: none;
        border-radius: 8px !important;
        height: 46px;
    }

    .site-footer .footer-heading {
        font-size: 1.05rem;
    }

    .site-footer .brand-desc {
        max-width: 100%;
    }

    .app-buttons.max-w-xs {
        max-width: 160px;
    }

    .footer-bottom-bar .container {
        text-align: center;
    }

    .wishlist-grid.row-cols-xl-4 > .col,
    .wishlist-grid > .col {
        width: 100%;
    }

    @media (min-width: 576px) {
        .wishlist-grid > .col {
            width: 50%;
        }
    }

    .wishlist-card-actions .btn-add-bag {
        font-size: 12px;
        padding: 6px 8px;
    }

    .wishlist-delete-btn {
        width: 38px;
        min-width: 38px;
    }

    .profile-sidebar {
        overflow: visible;
    }

    .profile-hub-section {
        padding-top: 0.55rem !important;
        padding-bottom: 1.25rem !important;
    }

    .profile-status-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-padding-inline: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .profile-status-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .orders-search-form {
        max-width: none;
    }

    .order-history-actions .btn {
        font-size: 0.78rem;
    }

    .order-history-body {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .order-history-thumb {
        width: 64px;
        height: 64px;
    }

    .order-history-actions {
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .order-history-actions form,
    .order-history-action-btn {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 110px;
    }

    .shipping-address-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 1rem;
    }

    .shipping-address-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .shipping-address-header .profile-back-link {
        font-size: 0.85rem;
    }

    .btn-add-address {
        width: auto;
        margin-left: auto;
    }

    .shipping-address-form-col {
        max-width: 100%;
    }

    .address-form-card .card-body {
        padding: 0.85rem 0.9rem;
    }

    .address-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .address-form-actions {
        width: 100%;
        margin-left: 0;
    }

    .address-form-actions .btn-save-address,
    .address-form-actions .address-cancel-btn {
        flex: 1;
    }

    .address-select-card .card-body {
        padding: 0.7rem 0.75rem !important;
    }

    .profile-image-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: none;
        gap: 10px;
        padding: 12px;
        overflow: visible;
    }

    .profile-image-preview-wrap {
        flex: 0 0 88px;
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
        margin: 0 auto;
    }

    .profile-image-upload-fields {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }

    .profile-image-upload-actions {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
    }

    .profile-image-pick-btn {
        width: auto;
    }

    .profile-image-file-name {
        flex: 0 0 auto;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }

    .profile-image-upload-fields .form-text {
        margin-top: 0 !important;
        text-align: center;
    }

    .profile-form-card,
    .profile-form-card .card-body {
        overflow: visible;
    }

    .address-type-pills .btn-outline-address-type {
        flex: 1 1 auto;
        text-align: center;
        min-width: 72px;
    }

    .address-mobile-group .input-group-text {
        min-width: 52px;
        justify-content: center;
    }

    .support-search-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .support-search-btn {
        width: 100%;
        height: 44px;
    }

    .support-page-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .support-ticket-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .support-ticket-media,
    .support-ticket-thumb {
        width: 64px;
        height: 64px;
    }

    .support-ticket-actions {
        grid-column: 1 / -1;
    }

    .support-open-btn {
        width: 100%;
    }

    .support-conversation-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-chat-bubble {
        max-width: min(88%, 100%);
    }

    .support-chat-image-link,
    .support-chat-image {
        width: 140px;
        height: 140px;
    }

    .order-timeline {
        gap: 4px;
        padding-left: 0;
        padding-right: 0;
    }

    .order-item-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .order-item-thumb {
        width: 72px;
        height: 72px;
    }

    .order-summary-card {
        position: static;
    }

    .order-details-status-head {
        align-items: center;
    }
}

/* ----- Small phones ----- */
@media (max-width: 575.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .top-bar-left .info-item span:not(.icon),
    .top-bar-right .info-item span:not(.icon) {
        font-size: 11px;
    }

    .btn-category {
        font-size: 12px;
    }

    .btn-hot-deals {
        font-size: 12px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .product-premium-card .btn-add-bag {
        font-size: 13px;
    }

    .main-promo-card {
        min-height: 260px;
    }

    .mini-promo-card {
        min-height: auto;
    }

    .cart-item-card,
    .checkout-address-card {
        width: 100%;
    }

    .checkout-address-form-card {
        position: static;
    }

    .checkout-payment-actions {
        flex-direction: column;
    }

    .checkout-pay-cod,
    .checkout-pay-online,
    .checkout-continue-btn {
        width: 100%;
    }

    .checkout-review-item-thumb {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    .checkout-review-summary {
        position: static;
    }

    .checkout-page-title {
        font-size: 1.4rem;
    }

    .products-listing-section {
        padding-top: 0.55rem !important;
        padding-bottom: 1.25rem !important;
        min-height: 0;
    }

    .products-page-title {
        font-size: 1.35rem;
    }

    .products-filter-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .products-grid {
        margin-bottom: 0;
    }

    .products-grid > .col {
        display: flex;
    }

    .products-grid .product-premium-card {
        width: 100%;
    }

    .products-grid .product-item-title {
        font-size: 14px;
    }

    .products-grid .btn-add-bag {
        font-size: 12px;
        padding: 6px 8px;
    }

    .products-grid .current-price {
        font-size: 14px;
    }

    .products-grid .original-price {
        font-size: 11px;
    }

    .product-details-page {
        padding-top: 0.55rem !important;
        padding-bottom: 1.25rem !important;
    }

    .product-details-page .pd-spec-cell.col-6 {
        padding: 12px !important;
    }

    .product-details-page .pd-spec-label {
        font-size: 0.6rem;
    }

    .product-details-page .pd-spec-value {
        font-size: 0.8rem;
    }

    .product-details-page .pd-offer-card {
        min-width: 180px;
        max-width: 220px;
    }

    .product-details-page .pd-vision-block {
        padding: 1rem !important;
    }

    .product-details-page .qty-stepper {
        width: 100%;
        max-width: 140px;
    }

    .product-details-page .product-sidebar-sticky {
        position: static !important;
    }

    .product-details-page .pd-thumb-item {
        flex: 1 1 0;
        min-width: 56px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .shipping-address-page .profile-hub-title {
        font-size: 1.35rem;
    }

    .shipping-section-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .address-form-card {
        border-radius: 12px !important;
    }

    .address-form-card .card-body {
        padding: 0.75rem 0.8rem;
    }

    .address-form-card .checkout-form-title {
        font-size: 1.05rem;
    }

    .address-empty-state {
        min-height: 96px;
        padding: 18px 12px;
        font-size: 0.9rem;
    }

    .address-type-pills .btn-outline-address-type {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}
