:root {
    --color-primary: #a20d2f;
}

/* Breadcrumbs use a light background; do not inherit the generic white .current color. */
.apharm-store .navigator-breadcrumb-wrapper .current {
    color: var(--color-primary, #a20d2f);
    overflow-wrap: anywhere;
}
.apharm-store .navigator-breadcrumb-wrapper > a,
.apharm-store .navigator-breadcrumb-wrapper > a:hover {
    color: #4b5563;
}
.apharm-store .navigator-breadcrumb-wrapper > i {
    color: #6b7280;
}

/* Product sharing modal. */
.apharm-share-modal .modal-dialog {
    max-width: 640px;
    margin-inline: auto;
}

.apharm-share-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgb(31 31 37 / 18%);
}

.apharm-share-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 16px;
    border: 0;
}

.apharm-share-modal .modal-header .btn-close {
    flex: 0 0 auto;
    margin: 0;
}

.apharm-share-modal .modal-title {
    margin: 0;
    color: #25362e;
    font-size: 24px;
    font-weight: 700;
}

.apharm-share-eyebrow {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
}

.apharm-share-modal .modal-body {
    padding: 0 26px 26px;
}

.apharm-share-description {
    margin-bottom: 18px;
    color: #596a70;
    line-height: 1.6;
}

.apharm-share-description strong {
    display: block;
    color: #25362e;
}

.apharm-share-label {
    display: block;
    margin-bottom: 8px;
    color: #34434a;
    font-size: 13px;
    font-weight: 600;
}

.apharm-share-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #dae4e5;
    border-radius: 10px;
    background: #f7fafb;
}

.apharm-share-link input {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3d5058;
    font-size: 13px;
    direction: ltr;
    text-align: left;
}

.apharm-share-link button,
.apharm-share-options a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid #dbe5e6;
    border-radius: 9px;
    background: #fff;
    color: #33454a;
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color 0.2s,
        color 0.2s,
        background-color 0.2s;
}

.apharm-share-link button {
    flex: auto;
    padding: 0 14px;
}

.apharm-share-link button:hover,
.apharm-share-options a:hover {
    border-color: var(--color-primary);
    background: #fff7f9;
    color: var(--color-primary);
}

.apharm-share-link button:focus-visible,
.apharm-share-options a:focus-visible {
    outline: 3px solid rgb(162 13 47 / 25%);
    outline-offset: 2px;
}

.apharm-share-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 178px;
    gap: 16px;
    margin-top: 20px;
}

.apharm-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.apharm-share-options a {
    padding: 8px;
    font-size: 13px;
}

.apharm-share-options i {
    color: var(--color-primary);
    font-size: 17px;
}

.apharm-share-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid #dbe5e6;
    border-radius: 12px;
    background: #f8fbfb;
    color: #63727a;
    text-align: center;
}

.apharm-share-qr canvas {
    width: 164px;
    height: 164px;
    max-width: 100%;
    border-radius: 6px;
}

.apharm-share-qr span {
    margin-top: 5px;
    font-size: 11px;
}

@media (max-width: 575px) {
    .apharm-share-modal .modal-dialog {
        margin: 12px;
    }

    .apharm-share-modal .modal-header {
        padding: 20px 18px 14px;
    }

    .apharm-share-modal .modal-body {
        padding: 0 18px 20px;
    }

    .apharm-share-body {
        grid-template-columns: 1fr;
    }

    .apharm-share-qr {
        width: fit-content;
        margin-inline: auto;
    }
}

/* Product details: Ekomart layout with A Pharm identity. */
.apharm-product-page .shopdetails-style-1-wrapper {
    overflow: visible;
}

.apharm-product-page .product-details-popup-wrapper.in-shopdetails {
    align-items: flex-start;
}

.apharm-product-page
    .product-details-popup-wrapper.in-shopdetails
    > .product-details-popup-section {
    width: 100%;
    min-width: 0;
}

.apharm-product-page
    .product-details-popup-wrapper.in-shopdetails
    .product-details-popup {
    width: 100%;
}

.apharm-product-page
    .product-details-popup-wrapper.in-shopdetails
    .details-product-area {
    width: 100%;
    gap: 32px;
}

.apharm-product-page
    .product-details-popup-wrapper.in-shopdetails
    .product-thumb-area {
    flex: 0 1 42%;
    min-width: 0;
    margin: 0 !important;
}

.apharm-product-page
    .product-details-popup-wrapper.in-shopdetails
    .product-thumb-area
    .product-thumb {
    width: 100%;
}

.apharm-product-page
    .product-details-popup-wrapper.in-shopdetails
    .details-product-area
    > .contents {
    flex: 1 1 0;
    min-width: 0;
}

.apharm-product-page .product-details-popup .product-thumb-area {
    cursor: auto;
}

.apharm-product-page .product-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    background: #fff;
}

.apharm-product-page .product-thumb > img:not([src=""]) {
    cursor: zoom-in;
}

.apharm-product-page .product-thumb.is-placeholder > img {
    cursor: default;
}

.apharm-product-page .product-thumb-area {
    position: relative;
}

.apharm-product-page .product-thumb > img:not([src=""]) {
    cursor: crosshair;
}

.apharm-zoom-lens {
    position: absolute;
    z-index: 4;
    display: none;
    width: 34%;
    aspect-ratio: 1;
    border: 2px solid rgb(162 13 47 / 70%);
    border-radius: 8px;
    background: rgb(255 255 255 / 28%);
    box-shadow: 0 6px 22px rgb(31 47 40 / 14%);
    pointer-events: none;
}

.apharm-product-page .product-thumb.is-zooming .apharm-zoom-lens {
    display: block;
}

.apharm-zoom-preview {
    position: absolute;
    z-index: 30;
    top: 0;
    inset-inline-start: calc(100% + 18px);
    display: none;
    width: min(430px, 40vw);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #e2e7e4;
    border-radius: 12px;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 18px 50px rgb(24 39 32 / 20%);
    pointer-events: none;
}

.apharm-product-page .product-thumb-area.is-zooming .apharm-zoom-preview {
    display: block;
}

.apharm-product-page .product-thumb.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #f8f9fb !important;
    cursor: default;
}

.apharm-product-page .product-thumb.is-placeholder > img {
    width: 42%;
    max-width: 180px;
    height: auto;
    aspect-ratio: auto;
}

.apharm-product-page .product-thumb.is-placeholder > img:hover {
    opacity: 1;
}

.apharm-product-page .apharm-image-placeholder-label {
    display: none;
}

.apharm-product-page
    .product-thumb.is-placeholder
    .apharm-image-placeholder-label {
    display: block;
    position: absolute;
    bottom: 24px;
    color: #66716d;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .apharm-product-page
        .product-details-popup-wrapper.in-shopdetails
        .details-product-area {
        flex-direction: column;
    }

    .apharm-product-page
        .product-details-popup-wrapper.in-shopdetails
        .product-thumb-area,
    .apharm-product-page
        .product-details-popup-wrapper.in-shopdetails
        .details-product-area
        > .contents {
        width: 100%;
        flex: none;
    }
}

.apharm-product-page .product-thumb > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

@media (max-width: 1199px), (hover: none) {
    .apharm-zoom-lens,
    .apharm-zoom-preview {
        display: none !important;
    }

    .apharm-product-page .product-thumb > img:not([src=""]) {
        cursor: zoom-in;
        transition: transform 0.24s ease;
        touch-action: pan-y;
    }

    .apharm-product-page .product-thumb.is-touch-zoomed > img {
        cursor: zoom-out;
        transform: scale(2.1);
    }
}

.apharm-product-page .product-thumb-filter-group .thumb-filter {
    flex: 0 0 auto;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #fff;
}

.apharm-product-page .product-thumb-filter-group {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}

.apharm-product-page
    .rts-product-details-section2
    .product-thumb-area
    .product-thumb-filter-group
    .thumb-filter {
    margin: 0;
}

.apharm-product-page .product-thumb-filter-group .thumb-filter img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.apharm-product-page .apharm-product-form {
    margin-top: 20px;
}

.apharm-store .apharm-variant-picker {
    width: 100%;
}

.apharm-store .apharm-variant-picker > label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: #26352e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.apharm-store .apharm-variant-picker__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgb(162 13 47 / 9%);
    color: var(--color-primary);
    font-size: 15px;
}

.apharm-store .apharm-variant-picker__control {
    position: relative;
}

.apharm-store .apharm-variant-picker__control > .form-select {
    width: 100%;
    min-height: 56px;
    padding: 12px;
    padding-inline: 18px 52px;
    border: 1px solid #d8dedb;
    border-radius: 10px;
    background-color: #fff;
    background-image: none;
    box-shadow: 0 5px 18px rgb(31 47 40 / 5%);
    color: #23312b;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.apharm-store .apharm-variant-picker__control > .form-select:invalid {
    color: #66736d;
    font-weight: 600;
}

.apharm-store .apharm-variant-picker__control > .form-select option {
    color: #23312b;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
}

.apharm-store .apharm-variant-picker__control > .form-select:hover {
    border-color: rgb(162 13 47 / 55%);
}

.apharm-store .apharm-variant-picker__control > .form-select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgb(162 13 47 / 12%);
}

.apharm-store .apharm-variant-picker__control > i {
    position: absolute;
    top: 50%;
    inset-inline-end: 19px;
    color: var(--color-primary);
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
}

.apharm-product-page .apharm-product-form .product-bottom-action {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.apharm-product-page .apharm-product-form .rts-btn {
    min-height: 52px;
    flex: 1 1 190px;
    justify-content: center;
}

.apharm-product-page .product-uniques {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e2e2e2;
}

.apharm-product-page .share-option-shop-details button {
    padding: 0;
    border: 0;
    background: transparent;
}

.apharm-product-page
    .share-option-shop-details
    .single-share-option.active
    .icon {
    background: var(--color-primary);
}

.apharm-product-page
    .share-option-shop-details
    .single-share-option.active
    .icon
    i {
    color: #fff;
}

.apharm-product-page .shop-sight-sticky-sidevbar > .title {
    margin-bottom: 26px;
}

.apharm-product-page .shop-sight-sticky-sidevbar .details strong {
    display: block;
    margin-bottom: 4px;
    color: #2c3c28;
    font-size: 15px;
}

.apharm-product-page .apharm-sidebar-payment {
    padding: 22px 16px;
    text-align: center;
}

.apharm-product-page .apharm-sidebar-payment .title {
    margin-bottom: 14px;
}

.apharm-product-page .apharm-sidebar-payment img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-inline: auto;
    cursor: default;
}

.apharm-product-page .apharm-detail-section {
    margin-top: 24px;
}

.apharm-product-page .apharm-detail-section h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.apharm-product-page .table-shop-details-pd th {
    width: 34%;
    color: #2c3c28;
    font-weight: 600;
}

.apharm-product-page .table-shop-details-pd th,
.apharm-product-page .table-shop-details-pd td {
    padding: 15px 18px;
    border-color: #e8eaec;
    vertical-align: middle;
}

.apharm-product-page .stock.out-stock {
    color: #dc2626;
}

@media (max-width: 1199px) {
    .apharm-product-page .apharm-product-benefits-column {
        margin-top: 35px;
    }
}

@media (max-width: 767px) {
    .apharm-product-page .product-thumb-filter-group .thumb-filter img {
        width: 58px;
        height: 58px;
    }

    .apharm-product-page .apharm-product-form .product-bottom-action,
    .apharm-product-page .apharm-product-form .rts-btn {
        width: 100%;
    }

    .apharm-product-page .share-option-shop-details {
        gap: 16px;
    }
}

/* Ekomart storefront pages: catalog, product, cart and checkout. */
.apharm-store .sidebar-filter-main select,
.apharm-store .filter-select-area select {
    min-height: 48px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding-inline: 16px 38px;
    background-color: #fff;
}
.apharm-store .sidebar-filter-main input[type="search"] {
    width: 100%;
    height: 48px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding-inline: 16px;
}
.apharm-filter-scroll {
    max-height: 310px;
    overflow: auto;
    padding-inline-end: 8px;
    scrollbar-width: thin;
}

[data-catalog-results] {
    position: relative;
    transition: opacity 0.2s ease;
}

.apharm-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.apharm-active-filters[hidden] {
    display: none;
}

.apharm-active-filters button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 13px;
    color: #496059;
    border: 1px solid #d9e4df;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.apharm-active-filters button:hover {
    color: #fff;
    border-color: #a20d2f;
    background: #a20d2f;
}

[data-catalog-results].is-loading {
    min-height: 320px;
    opacity: 0.48;
    pointer-events: none;
}

[data-catalog-results].is-loading::after {
    position: absolute;
    z-index: 5;
    top: 110px;
    inset-inline-start: 50%;
    width: 42px;
    height: 42px;
    margin-inline-start: -21px;
    content: "";
    border: 4px solid rgba(162, 13, 47, 0.18);
    border-top-color: #a20d2f;
    border-radius: 50%;
    animation: apharm-catalog-spin 0.7s linear infinite;
}

@keyframes apharm-catalog-spin {
    to {
        transform: rotate(360deg);
    }
}
.single-filter-box .filterbox-body .price-input-area .half-input-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.price-input-area .single label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}
.price-input-area .single input {
    width: 100%;
    height: 44px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding-inline: 10px;
}

.apharm-price-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgb(162 13 47 / 10%);
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgb(162 13 47 / 8%),
        rgb(162 13 47 / 2%)
    );
}

.apharm-price-summary > span {
    color: #69766f;
    font-size: 13px;
    font-weight: 600;
}

.apharm-price-summary strong {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.price-input-area .apharm-price-field {
    position: relative;
}

.single-filter-box
    .filterbox-body
    .price-input-area
    .half-input-wrapper
    .single
    .apharm-price-field
    input {
    height: 48px;
    padding-inline: 8px 20px;
    border-color: #dce3df;
    border-radius: 9px;
    background: #fff;
    color: #26352e;
    font-size: 15px;
    font-weight: 700;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.price-input-area .apharm-price-field input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(162 13 47 / 11%);
}

.apharm-price-field > span {
    position: absolute;
    top: 50%;
    inset-inline-end: 7px;
    color: #8a958f;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
}

.apharm-price-range {
    --price-min: 0%;
    --price-max: 100%;
    position: relative;
    height: 34px;
    margin-top: 15px;
    direction: rtl;
}

.apharm-price-range__rail,
.apharm-price-range__fill {
    position: absolute;
    top: 14px;
    height: 6px;
    border-radius: 999px;
    pointer-events: none;
}

.apharm-price-range__rail {
    inset-inline: 0;
    background: #e3e8e5;
}

.apharm-price-range__fill {
    right: var(--price-min);
    left: calc(100% - var(--price-max));
    background: linear-gradient(90deg, #a20d2f, #cf3156);
    box-shadow: 0 2px 7px rgb(162 13 47 / 18%);
}

.apharm-price-range input[type="range"] {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
}

.apharm-price-range input[data-price-bound="max"] {
    z-index: 3;
}

.apharm-price-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.apharm-price-range input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 3px 11px rgb(40 50 45 / 25%);
    cursor: grab;
    pointer-events: auto;
    appearance: none;
}

.apharm-price-range input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
}

.apharm-price-range input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 3px 11px rgb(40 50 45 / 25%);
    cursor: grab;
    pointer-events: auto;
}

.apharm-price-range input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow:
        0 0 0 4px rgb(162 13 47 / 18%),
        0 3px 11px rgb(40 50 45 / 25%);
}
.filter-select-area .right-end {
    display: flex;
    align-items: center;
    gap: 16px;
}
.button-tab-area {
    display: flex;
    gap: 7px;
}
.button-tab-area .nav-link {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    background: #fff;
    color: #eb930f;
}
.button-tab-area .nav-link.active {
    color: #fff;
    border-color: #a20d2f;
    background: #a20d2f;
}
.product-area-wrapper-shopgrid-list.is-list .apharm-product-column {
    width: 100%;
}
.product-area-wrapper-shopgrid-list.is-list .single-shopping-card-one {
    display: grid;
    grid-template-columns: minmax(220px, 32%) 1fr;
    align-items: center;
}
.product-area-wrapper-shopgrid-list.is-list .image-and-action-area-wrapper {
    border-inline-end: 1px solid #ededed;
}
.product-area-wrapper-shopgrid-list.is-list .thumbnail-preview img {
    height: 260px;
    object-fit: contain;
}
.product-area-wrapper-shopgrid-list.is-list .body-content {
    padding: 30px;
}
.shop-details .product-thumb img,
.shop-details .thumb-filter img,
.cart-page .thumbnail img,
.checkout-page .thumbnail img {
    object-fit: contain;
    background: #fff;
}
.shop-details .product-thumb img {
    width: 100%;
    aspect-ratio: 1;
}
.shop-details .thumb-filter.active {
    border-color: #a20d2f;
}
.product-status .stock {
    display: inline-flex;
    margin-inline-start: 10px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}
.product-status .stock.in-stock {
    color: #15803d;
    background: #dcfce7;
}
.product-status .stock.out-stock {
    color: #b91c1c;
    background: #fee2e2;
}
.share-option-shop-details form,
.share-option-shop-details button.single-share-option {
    margin: 0;
}
.share-option-shop-details button.single-share-option {
    border: 0;
    background: transparent;
}
.apharm-update-quantity {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #a20d2f;
}
.quantity-edit .apharm-qty-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    color: #eb930f;
    background: transparent;
}
.bottom-cupon-code-cart-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.apharm-address-choices {
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
}
.apharm-address-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    cursor: pointer;
}
.apharm-address-option:has(input:checked) {
    border-color: #a20d2f;
    box-shadow: 0 0 0 1px #a20d2f;
}
.apharm-address-option small {
    display: block;
    color: #74787c;
    margin-top: 4px;
}
.apharm-three-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.apharm-checkout-total {
    color: #a20d2f !important;
    font-size: 18px;
}
.apharm-checkout-options {
    margin-bottom: 20px !important;
}
.apharm-terms {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 20px 0;
    cursor: pointer;
}
.apharm-terms input {
    margin-top: 5px;
}
.checkout-page .rts-billing-details-area .single-input {
    margin-bottom: 35px;
}
.checkout-page .rts-billing-details-area .single-input input,
.checkout-page .rts-billing-details-area .single-input select {
    height: 50px;
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    margin-top: 10px;
}
.checkout-page .rts-billing-details-area .single-input input:focus,
.checkout-page .rts-billing-details-area .single-input select:focus,
.checkout-page .rts-billing-details-area .single-input textarea:focus {
    border-color: var(--color-primary);
}
.checkout-page .rts-billing-details-area .single-input textarea {
    height: 180px;
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    margin-top: 10px;
    padding: 12px;
}
.checkout-page .rts-billing-details-area .half-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}
.checkout-page .rts-billing-details-area .half-input-wrapper .single-input {
    flex-basis: 50%;
    margin-bottom: 0;
}
.checkout-page .apharm-checkout-subtitle {
    color: #2c3c28;
    font-size: 16px;
    font-weight: 700;
}
.checkout-page
    .right-card-sidebar-checkout
    .cottom-cart-right-area
    > h6:first-child {
    margin-top: 0;
}
.checkout-page .right-card-sidebar-checkout .apharm-checkout-terms label {
    display: inline-block;
    position: relative;
    width: auto;
    padding-inline-start: 27px;
    line-height: 1.65;
    cursor: pointer;
}
.checkout-page
    .right-card-sidebar-checkout
    .apharm-checkout-terms
    label::before {
    inset-inline-start: 0;
    left: auto;
    top: 4px;
    width: 17px;
    height: 17px;
    background: #fff;
    border: 1px solid #cfd5cc;
    border-radius: 3px;
}
.checkout-page
    .right-card-sidebar-checkout
    .apharm-checkout-terms
    label::after {
    inset-inline-start: 3px;
    left: auto;
    top: 8px;
    width: 10px;
    height: 6px;
    border: 0;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 1px;
    transform: rotate(-45deg);
}
.checkout-page
    .right-card-sidebar-checkout
    .apharm-checkout-terms
    input:checked
    ~ label::before {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.checkout-page .right-card-sidebar-checkout .rts-btn.btn-primary {
    width: 100%;
    justify-content: center;
}
[dir="rtl"] .right-card-sidebar-checkout .cottom-cart-right-area ul li label {
    padding-right: 24px;
    padding-left: 0;
    position: relative;
}
[dir="rtl"]
    .right-card-sidebar-checkout
    .cottom-cart-right-area
    ul
    li
    input[type="radio"]
    ~ label::before {
    right: 0;
    left: auto;
}
[dir="rtl"]
    .right-card-sidebar-checkout
    .cottom-cart-right-area
    ul
    li
    input[type="radio"]
    ~ label::after {
    right: 3.2px;
    left: auto;
}
[dir="rtl"] .swal2-popup {
    direction: rtl;
    text-align: right;
}

@media (max-width: 1199px) {
    .shop-grid-sidebar-area .sidebar-filter-main {
        margin-bottom: 35px;
    }
}
@media (max-width: 767px) {
    .filter-select-area,
    .filter-select-area .right-end {
        align-items: stretch;
        flex-direction: column;
    }
    .product-area-wrapper-shopgrid-list.is-list .single-shopping-card-one {
        grid-template-columns: 1fr;
    }
    .apharm-three-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .checkout-page .rts-billing-details-area .half-input-wrapper {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .checkout-page .rts-billing-details-area .half-input-wrapper .single-input {
        margin-bottom: 25px;
        width: 100%;
    }
    .bottom-cupon-code-cart-area {
        align-items: stretch;
        flex-direction: column;
    }
    .bottom-cupon-code-cart-area .rts-btn {
        width: 100%;
        text-align: center;
    }
}
.apharm-mobile-header {
    display: none;
}
.apharm-store .logo-area .logo {
    width: 150px;
    height: 58px;
    object-fit: contain;
}
.apharm-store .header-top-area {
    background: #a20d2f;
}

/* Preserve the purchased template's angled promotion edge in both directions. */
[dir="rtl"] .apharm-store .nav-and-btn-wrapper .btn-primary::after {
    right: -27px;
    left: auto;
    border-right: 21px solid var(--color-primary);
    border-left: 0;
    transform: rotate(-90deg);
}

/* Keep generated Mega Menus on the original Ekomart 8/4 grid and banner ratio. */
.apharm-store .rts-megamenu .feature-add-megamenu-area {
    width: 100%;
}
.apharm-store .rts-megamenu .feature-add-megamenu-area img {
    display: block;
    width: 100%;
    aspect-ratio: 968 / 314;
    object-fit: cover;
    border-radius: 6px;
}
[dir="rtl"] .apharm-store .rts-megamenu,
[dir="rtl"] .apharm-store .rts-megamenu .megamenu-item-wrapper {
    text-align: right;
    direction: rtl;
}
[dir="rtl"]
    .apharm-store
    .megamenu-item-wrapper
    .single-megamenu-wrapper::after {
    right: auto;
    left: 60px;
}

/* Keep the template separator between the links list and delivery message in both directions. */
.apharm-store
    .header-mid-wrapper-between
    .nav-sm-left
    .nav-h_top:not(.language)::after {
    right: auto;
    inset-inline-end: -20px;
}

.apharm-store .apharm-topbar .bwtween-area-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.apharm-store .apharm-topbar .apharm-session-message {
    text-align: center;
    min-height: 20px;
}

.apharm-store .apharm-topbar .apharm-session-message p {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.apharm-store .apharm-topbar .contact-number-area {
    text-align: end;
}

@media (max-width: 991px) {
    .apharm-store .apharm-topbar .bwtween-area-header-top {
        grid-template-columns: 1fr;
        gap: 4px;
        text-align: center;
    }

    .apharm-store .apharm-topbar .contact-number-area {
        text-align: center;
    }
}

.apharm-store .action-share-option form {
    margin: 0;
}
.apharm-store .action-share-option .single-action.active,
.apharm-store [data-wishlist-form] .active {
    color: #a20d2f;
    border-color: #a20d2f;
}
.apharm-wishlist-notice {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 24px;
    z-index: 99999;
    padding: 13px 20px;
    border-radius: 8px;
    color: #fff;
    background: #a20d2f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.apharm-store .rts-cart-list-area.wishlist button.close {
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #a20d2f;
}
.apharm-track-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
#apharm-home-banner .banner-one-inner-content {
    margin-inline: auto;
    padding-inline: 110px;
    text-align: center;
}
#apharm-home-banner .title {
    white-space: pre-line;
    font-size: 32px;
    line-height: 1.4;
}
#apharm-home-banner .swiper-slide {
    height: auto;
}
#apharm-home-banner .banner-bg-image {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 60px;
}
#apharm-home-banner .swiper-button-next,
#apharm-home-banner .swiper-button-prev {
    top: 50%;
    margin-top: -40px;
    opacity: 1;
}
#apharm-home-banner .swiper-button-next {
    right: 5%;
    left: auto;
}
#apharm-home-banner .swiper-button-prev {
    left: 5%;
    right: auto;
}
[dir="rtl"] #apharm-home-banner .swiper-button-next {
    right: auto;
    left: 5%;
}
[dir="rtl"] #apharm-home-banner .swiper-button-prev {
    left: auto;
    right: 5%;
}
[dir="rtl"] #apharm-home-banner .swiper-button-next i,
[dir="rtl"] #apharm-home-banner .swiper-button-prev i,
[dir="rtl"] #apharm-home-banner .arrow-icon i {
    transform: rotate(180deg);
}
@media (max-width: 767px) {
    #apharm-home-banner .banner-one-inner-content {
        padding-inline: 48px;
    }
    #apharm-home-banner .title {
        font-size: 24px;
    }
    #apharm-home-banner .banner-bg-image {
        min-height: 320px;
    }
    #apharm-home-banner .swiper-button-next,
    #apharm-home-banner .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
}
.wishlist-page .product-main-cart {
    min-width: 0;
    padding-inline-end: 20px;
}
.wishlist-page .product-main-cart > form {
    flex-shrink: 0;
}
.wishlist-page .product-main-cart .thumbnail {
    flex: 0 0 65px;
}
.wishlist-page .product-main-cart .thumbnail img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}
.wishlist-page .product-main-cart .information {
    min-width: 0;
    overflow-wrap: anywhere;
}
.wishlist-page .product-main-cart button.close {
    padding: 0;
}
.wishlist-page .single-cart-area-list.main .quantity-edit input {
    max-width: 30px;
    width: 30px;
}
.wishlist-page .single-cart-area-list .button-area {
    min-width: 145px;
}
.wishlist-page .single-cart-area-list .button-area .rts-btn {
    padding-inline: 16px;
}
[dir="rtl"] .wishlist-page .quantity-edit button:first-child i {
    border-right: 0;
    border-left: 1px solid rgba(43, 66, 38, 0.12);
}
@media (max-width: 767px) {
    .wishlist-page .single-cart-area-list.main {
        padding: 24px;
    }
    .wishlist-page .single-cart-area-list.main .product-main-cart {
        flex-direction: row;
    }
    [dir="rtl"] .wishlist-page .product-main-cart .close {
        right: auto;
        left: 0;
    }
}
.apharm-track-grid > div {
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.apharm-track-grid span {
    color: #74787c;
}
@media (max-width: 767px) {
    .apharm-track-grid {
        grid-template-columns: 1fr;
    }
    .apharm-store .rts-cart-list-area.wishlist .single-cart-area-list.head {
        display: none;
    }
    .apharm-store .rts-cart-list-area.wishlist .single-cart-area-list.main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .apharm-store
        .rts-cart-list-area.wishlist
        .single-cart-area-list.main
        > div {
        width: 100% !important;
    }
}
.apharm-store .search-header button {
    border: 0;
}
.apharm-store .actions-area button {
    border: 0;
    background: transparent;
}
.apharm-store .bg_one-banner {
    background-image: url("../images/banner/01.webp");
}
.apharm-store .bg_one-banner.two {
    background-image: url("../images/banner/08.webp");
}
.apharm-store .single-category-one img {
    /* height: 90px; */
    object-fit: contain;
}
.apharm-store .single-shopping-card-one .thumbnail-preview img {
    /* height: 185px; */
    object-fit: contain;
    background: #fff;
}
.apharm-store .apharm-product-card .thumbnail-preview {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.apharm-store .apharm-product-card .thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.apharm-store .single-shopping-card-one .action-share-option form {
    display: contents;
}
.apharm-store
    .single-shopping-card-one
    .action-share-option
    button.single-action {
    padding: 0;
    background: transparent;
}
.apharm-store .single-shopping-card-one .cart-counter-action form {
    display: contents;
    margin: 0;
}
.apharm-store .single-shopping-card-one .cart-counter-action .rts-btn {
    margin-top: 0;
}
.apharm-store .single-shopping-card-one .body-content .title {
    min-height: 42px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.apharm-alerts {
    position: fixed;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 1099;
    width: min(420px, calc(100% - 36px));
}
.apharm-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 25px;
}
.apharm-form .form-control,
.apharm-form .form-select {
    min-height: 48px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 15px;
}
.apharm-empty {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed #d9d9d9;
    background: #fff;
}
.apharm-page-head {
    background: #f3f4f6;
    padding: 55px 0;
    margin-bottom: 0;
}
.apharm-page-head h1 {
    font-size: 38px;
    margin: 0;
}
.apharm-section {
    padding: 70px 0;
}
.apharm-section--soft {
    background: #f5f6f7;
}
.apharm-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.apharm-product-detail__image {
    border: 1px solid #e2e2e2;
    padding: 25px;
    background: #fff;
}
.apharm-product-detail__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}
.apharm-price-large {
    font-size: 30px;
    font-weight: 700;
    color: #a20d2f;
}
.apharm-cart-table img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.apharm-cart-table td {
    vertical-align: middle;
}
.apharm-summary {
    position: sticky;
    top: 20px;
}
[dir="rtl"] body.apharm-store {
    text-align: right;
}

.apharm-store .accont-wishlist-cart-area-header a.btn-border-only:hover,
.apharm-store
    .accont-wishlist-cart-area-header
    a.btn-border-only:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.apharm-store
    .accont-wishlist-cart-area-header
    a.btn-border-only:is(:hover, :focus-visible)
    i,
.apharm-store
    .accont-wishlist-cart-area-header
    a.btn-border-only:is(:hover, :focus-visible)
    span:not(.number) {
    color: #fff;
}

.apharm-store
    .accont-wishlist-cart-area-header
    a.wishlist:is(:hover, :focus-visible)
    .number {
    background: #fff;
    color: var(--color-primary);
}

[dir="rtl"] .apharm-store .accont-wishlist-cart-area-header a.wishlist .number {
    left: auto;
    right: 17px;
}

.apharm-store
    .accont-wishlist-cart-area-header
    a.btn-border-only:focus-visible {
    outline: 3px solid rgb(162 13 47 / 25%);
    outline-offset: 3px;
}

[dir="rtl"] .rts-header-one-area-one .category-sub-menu,
[dir="rtl"] .side-bar {
    text-align: right;
}

[dir="rtl"]
    .accont-wishlist-cart-area-header
    .category-hover-header.cart
    .category-sub-menu.card-number-show {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"]
    .category-hover-header
    .category-sub-menu.card-number-show
    .cart-item-1
    .close-c1 {
    right: auto;
    left: 0;
}

.category-hover-header
    .category-sub-menu.card-number-show
    .cart-item-1
    .close-c1 {
    padding: 0;
}

.category-hover-header
    .category-sub-menu.card-number-show
    .cart-item-1
    .close-c1
    button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
}

[dir="rtl"]
    .category-hover-header
    .category-sub-menu.card-number-show
    .cart-item-1
    .img-name {
    padding-left: 30px;
}

[dir="rtl"]
    .category-hover-header
    .category-sub-menu.card-number-show
    .cart-item-1
    .details
    .number,
[dir="rtl"]
    .category-hover-header
    .category-sub-menu.card-number-show
    .sub-total-cart-balance
    .top {
    direction: rtl;
}
[dir="rtl"] .shop-grid-sidebar .filter-select-area,
[dir="rtl"] .shop-grid-sidebar .product-area-wrapper-shopgrid-list {
    margin-left: 0;
    margin-right: -30px;
}

@media (min-width: 1200px) {
    [dir="rtl"] .shop-grid-sidebar-area .rts-sticky-column-item {
        padding-right: 0 !important;
        padding-left: 70px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    [dir="rtl"] .shop-grid-sidebar .filter-select-area,
    [dir="rtl"] .shop-grid-sidebar .product-area-wrapper-shopgrid-list {
        margin-right: 0;
    }
}

@media (max-width: 1199px) {
    [dir="rtl"] .shop-grid-sidebar .filter-select-area,
    [dir="rtl"] .shop-grid-sidebar .product-area-wrapper-shopgrid-list {
        margin-right: 0;
    }
}
[dir="rtl"] .banner-one-inner-content {
    margin-left: auto;
    margin-right: 90px;
}
[dir="rtl"] .fa-arrow-right:before {
    content: "\f061";
}
@media (max-width: 991px) {
    .apharm-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }
    .apharm-mobile-header img {
        width: 115px;
        height: 50px;
        object-fit: contain;
    }
    .apharm-mobile-header > div {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .apharm-mobile-header a,
    .apharm-mobile-header button {
        position: relative;
        color: #1f1f25;
        background: none;
        border: 0;
        font-size: 20px;
    }
    .apharm-mobile-header span {
        position: absolute;
        top: -10px;
        inset-inline-end: -12px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #a20d2f;
        color: #fff;
        font-size: 11px;
        display: grid;
        place-items: center;
    }
    .apharm-store .logo-area .logo {
        width: 115px;
        height: 48px;
    }
    [dir="rtl"] .banner-one-inner-content {
        margin-right: 20px;
    }
    .apharm-section {
        padding: 45px 0;
    }
}
@media (max-width: 575px) {
    .apharm-store .banner-one-inner-content .title {
        font-size: 30px;
        line-height: 1.25;
    }
    .apharm-store .bg_one-banner {
        background-position: center;
    }
    .apharm-page-head h1 {
        font-size: 30px;
    }
    .apharm-card {
        padding: 18px;
    }
    .apharm-cart-table thead {
        display: none;
    }
    .apharm-cart-table tr {
        display: grid;
        border-bottom: 1px solid #ddd;
    }
    .apharm-cart-table td {
        border: 0;
    }
}

/* Complete Ekomart storefront skin in the A Pharm brand. */
.apharm-store .btn-primary,
.apharm-store .rts-btn.btn-primary,
.apharm-store .progress-bar,
.apharm-store .bg_primary,
.apharm-store .pagination .page-item.active .page-link {
    border-color: #a20d2f !important;
    /* background-color: #a20d2f !important; */
}
.apharm-store a:hover,
.apharm-store .current,
.apharm-store .price-area .current,
.apharm-store .product-price,
.apharm-store .btn-small,
.apharm-store .single-category label:hover {
    color: #ffffff;
}
.apharm-store .rts-btn.border-only {
    color: #a20d2f;
    border-color: #a20d2f;
    background: #fff;
}
.apharm-store .rts-btn.border-only:hover {
    color: #fff;
    background: #a20d2f;
}
.apharm-card-description {
    display: none;
    margin: 8px 0 14px;
    color: #74787c;
    line-height: 1.7;
}
.product-area-wrapper-shopgrid-list.is-list .apharm-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-area-wrapper-shopgrid-list.is-list .single-shopping-card-one {
    min-height: 300px;
}
.product-area-wrapper-shopgrid-list.is-list .image-and-action-area-wrapper {
    height: 100%;
}

.apharm-cart-coupon {
    padding: 0 0 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e7e7e7;
}
.cart-page .apharm-template-coupon {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}
.cart-page .apharm-template-coupon input {
    width: 296px;
    max-width: 100%;
    height: 50px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 6px;
}
.cart-page .cart-total-area-start-right .subtotal,
.cart-page .cart-total-area-start-right .shipping,
.cart-page .cart-total-area-start-right .bottom .wrapper {
    gap: 20px;
    justify-content: space-between;
}
.cart-page [data-cart-adjustment][hidden] {
    display: none;
}
.cart-page .cart-total-area-start-right .price {
    white-space: nowrap;
}
.cart-page .single-cart-area-list .product-main-cart {
    min-width: 0;
    padding-inline-end: 20px;
}
.cart-page .product-main-cart .thumbnail {
    flex: 0 0 65px;
}
.cart-page .product-main-cart .thumbnail img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}
.cart-page .product-main-cart .information {
    min-width: 0;
    overflow-wrap: anywhere;
}
.cart-page .product-main-cart button.close {
    padding: 0;
    border: 0;
    background: transparent;
}
.cart-page .single-cart-area-list.main .quantity-edit input {
    max-width: 30px;
    width: 30px;
}
[dir="rtl"] .cart-page .shipping input[type="radio"] ~ label {
    padding-left: 0;
    padding-right: 24px;
}
[dir="rtl"] .cart-page .shipping input[type="radio"] ~ label::before {
    left: auto;
    right: 0;
}
[dir="rtl"] .cart-page .shipping input[type="radio"] ~ label::after {
    left: auto;
    right: 3.2px;
}
[dir="rtl"] .cart-page .quantity-edit button:first-child i {
    border-right: 0;
    border-left: 1px solid rgba(43, 66, 38, 0.12);
}
@media (max-width: 767px) {
    .cart-page .single-cart-area-list.head {
        display: none;
    }
    .cart-page .apharm-template-coupon {
        flex-wrap: wrap;
        width: 100%;
    }
    .cart-page .apharm-template-coupon input {
        width: 100%;
    }
    .cart-page .single-cart-area-list.main {
        padding: 24px;
    }
    .cart-page .single-cart-area-list.main .product-main-cart {
        flex-direction: row;
        width: 100%;
    }
    .cart-page .cart-total-area-start-right .shipping {
        flex-wrap: wrap;
    }
    [dir="rtl"] .cart-page .product-main-cart .close {
        right: auto;
        left: 0;
    }
}
.apharm-cart-coupon > label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
    color: #eb930f;
}
.apharm-cart-coupon > div {
    display: flex;
    gap: 7px;
}
.apharm-cart-coupon input {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding-inline: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
}
.apharm-cart-coupon .rts-btn {
    min-width: auto;
    height: 45px;
    padding: 0 15px;
}
.cart-total-area-start-right .shipping li label {
    padding-inline-end: 4px;
}
.cart-total-area-start-right .shipping li label strong {
    display: block;
    color: #74787c;
    font-size: 12px;
    font-weight: 500;
}
.cart-page .information small {
    display: block;
    margin-top: 5px;
    color: #74787c;
}
.apharm-empty > i {
    display: block;
    margin-bottom: 20px;
    color: #a20d2f;
    font-size: 56px;
}

.apharm-service-strip {
    background: #a20d2f !important;
}
.apharm-service-strip .single-short-service-area-start {
    height: 100%;
}
.apharm-service-strip .icon-area img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.apharm-service-strip .information .title,
.apharm-service-strip .information .disc {
    color: #fff;
}
.apharm-service-strip .information .disc {
    opacity: 0.82;
}

.accout-dashborard-nav form {
    margin: 0;
}
.accout-dashborard-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: start;
}
.accout-dashborard-nav button.nav-link {
    border: 0;
}
.account-tab-area-start .dashboard-account-area {
    padding: 32px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    background: #fff;
}
.order-table-account .table td,
.order-table-account .table th {
    vertical-align: middle;
}
.apharm-order-status {
    display: inline-flex;
    padding: 5px 11px;
    color: #a20d2f;
    border-radius: 50px;
    background: rgba(162, 13, 47, 0.09);
    font-weight: 600;
    white-space: nowrap;
}
.apharm-address-list {
    width: 100%;
}
.apharm-address-card {
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
}
.apharm-address-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
.apharm-address-card h3 span {
    padding: 3px 8px;
    color: #a20d2f;
    border-radius: 30px;
    background: rgba(162, 13, 47, 0.09);
    font-size: 11px;
}
.apharm-address-card > div {
    display: flex;
    gap: 16px;
}
.apharm-address-card form {
    margin: 0;
}
.apharm-address-card button {
    padding: 0;
    color: #b91c1c;
    border: 0;
    background: transparent;
}
.apharm-address-form {
    padding: 25px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
}
.apharm-address-form .row {
    margin: 0 -8px;
}
.apharm-address-form [class*="col-"] {
    padding: 0 8px;
}
.apharm-order-heading {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    background: #fff;
}
.apharm-order-heading > div:not(.apharm-order-actions) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.apharm-order-heading span {
    color: #74787c;
}
.apharm-order-box {
    height: 100%;
    padding: 25px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    background: #fff;
}
.apharm-order-box h3 {
    margin-bottom: 20px;
    font-size: 22px;
}
.apharm-order-box > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
}
.apharm-order-box .grand {
    margin-top: 10px;
    padding-top: 15px;
    color: #a20d2f;
    border-top: 1px solid #e7e7e7;
    font-size: 18px;
}

.registration-wrapper-1 {
    max-width: 720px;
}
.registration-wrapper-1 .logo-area img {
    width: 135px;
    height: 64px;
    object-fit: contain;
}
.apharm-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.apharm-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 5px 0 20px;
    cursor: pointer;
}
.apharm-check-label input {
    width: auto !important;
    height: auto !important;
    margin-top: 5px;
}

.apharm-order-success {
    padding: 55px;
    text-align: center;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(44, 60, 40, 0.06);
}
.apharm-success-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 24px;
    color: #fff;
    border-radius: 50%;
    background: #a20d2f;
    font-size: 38px;
}
.apharm-order-success > span {
    color: #a20d2f;
    font-weight: 700;
}
.apharm-order-success h1 {
    margin: 8px 0 12px;
}
.apharm-success-order {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 30px 0;
    border-block: 1px solid #e7e7e7;
}
.apharm-success-order > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
}
.apharm-success-order > div + div {
    border-inline-start: 1px solid #e7e7e7;
}
.apharm-success-order small {
    color: #74787c;
}
.apharm-success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.apharm-invoice-page {
    background: #f4f5f6;
}
.apharm-invoice-page .invoice-main-wrapper-1 {
    background: #fff;
}
.apharm-invoice-page .logo-top-area .logo img {
    width: 190px;
    height: 74px;
    object-fit: contain;
}
.apharm-invoice-page .invoice-location .title {
    color: #a20d2f;
}
.apharm-invoice-page .invoice-banner {
    background-image: linear-gradient(90deg, #a20d2f, #c92a4f);
    min-height: 16px;
}
.apharm-invoice-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 30px;
    padding: 28px 35px 10px;
}
.apharm-invoice-meta > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.apharm-invoice-meta span {
    color: #74787c;
    font-size: 13px;
}
.apharm-invoice-page .invoice-table .bg-active,
.apharm-invoice-page .invoice-table thead {
    color: #fff;
    background: #a20d2f;
}
.apharm-invoice-grand td {
    color: #a20d2f !important;
    font-size: 18px;
}
.apharm-invoice-page .powerby img {
    width: 90px;
    height: 38px;
    object-fit: contain;
}
.apharm-invoice-processing {
    color: #74787c;
}
.apharm-about-image,
.apharm-contact-image {
    height: 100%;
    min-height: 470px;
    overflow: hidden;
    border-radius: 8px;
}
.apharm-about-image img,
.apharm-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apharm-about-content > span,
.apharm-contact-card > span {
    color: #a20d2f;
    font-weight: 700;
}
.apharm-about-content h1,
.apharm-contact-card h1 {
    margin: 8px 0 18px;
    font-size: clamp(32px, 4vw, 52px);
}
.apharm-about-content p,
.apharm-contact-card p {
    color: #74787c;
    font-size: 17px;
    line-height: 1.9;
}
.apharm-about-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0;
}
.apharm-about-points > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
}
.apharm-about-points i {
    color: #a20d2f;
    font-size: 27px;
}
.apharm-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 45px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
}
.apharm-contact-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 30px;
}
.apharm-contact-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eb930f;
    font-weight: 600;
}
.apharm-contact-list i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #a20d2f;
    border-radius: 50%;
    background: rgba(162, 13, 47, 0.09);
}
.apharm-policy-content {
    padding: 55px;
    text-align: center;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
}
.apharm-policy-content p {
    color: #74787c;
    font-size: 17px;
    line-height: 1.9;
}
.apharm-policy-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    color: #fff;
    border-radius: 50%;
    background: #a20d2f;
    font-size: 30px;
}

@media (max-width: 991px) {
    .accout-dashborard-nav {
        margin-bottom: 25px;
    }
    .apharm-order-heading {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .apharm-order-actions {
        grid-column: 1 / -1;
    }
    .apharm-service-strip {
        padding: 55px 0;
    }
}
@media (max-width: 767px) {
    .apharm-auth-grid,
    .apharm-invoice-meta,
    .apharm-success-order {
        grid-template-columns: 1fr;
    }
    .apharm-success-order > div + div {
        border-inline-start: 0;
        border-top: 1px solid #e7e7e7;
    }
    .apharm-order-success {
        padding: 35px 20px;
    }
    .apharm-order-heading {
        grid-template-columns: 1fr;
    }
    .apharm-order-actions {
        grid-column: auto;
    }
    .apharm-order-actions .rts-btn {
        width: 100%;
        justify-content: center;
    }
    .apharm-invoice-page .invoice-main-wrapper-1 {
        padding: 15px;
    }
    .apharm-invoice-meta {
        padding-inline: 0;
    }
    .apharm-about-image,
    .apharm-contact-image {
        min-height: 300px;
    }
    .apharm-about-points {
        grid-template-columns: 1fr;
    }
    .apharm-contact-card,
    .apharm-policy-content {
        padding: 28px 20px;
    }
}
@media print {
    .apharm-invoice-page {
        background: #fff;
    }
    .apharm-invoice-page .no-print {
        display: none !important;
    }
    .apharm-invoice-page .invoice-main-wrapper-1 {
        box-shadow: none !important;
        border: 0 !important;
    }
}
[dir="rtl"] .title-area-between .next-prev-swiper-wrapper .apharm-featured-prev,
[dir="rtl"] .title-area-between .next-prev-swiper-wrapper .apharm-latest-prev,
[dir="rtl"] .title-area-between .next-prev-swiper-wrapper .apharm-related-prev {
    right: auto;
    left: 50px;
}

[dir="rtl"] .title-area-between .next-prev-swiper-wrapper .apharm-featured-next,
[dir="rtl"] .title-area-between .next-prev-swiper-wrapper .apharm-latest-next,
[dir="rtl"] .title-area-between .next-prev-swiper-wrapper .apharm-related-next {
    right: auto;
    left: 0;
}

.product-with-discount
    .single-shopping-card-one.discount-offer
    > .thumbnail-preview
    img {
    object-fit: contain;
    object-position: center;
}

@media (min-width: 1200px) {
    .product-with-discount > .row {
        align-items: stretch;
    }

    .product-with-discount > .row > .col-xl-4 {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .product-with-discount > .row > .col-xl-4 > .single-discount-with-bg {
        height: 100%;
        margin-bottom: 0;
    }

    .product-with-discount > .row > .col-xl-8 > .row {
        height: 100%;
    }

    .product-with-discount > .row > .col-xl-8 > .row > .col-lg-6 {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .product-with-discount .single-shopping-card-one.discount-offer {
        height: 100%;
        margin-bottom: 0;
    }
}

.apharm-category-feature .single-feature-card .content-area {
    max-width: 64%;
    margin-right: auto;
}

.apharm-category-feature .single-feature-card .title {
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .apharm-category-feature .single-feature-card .content-area {
        max-width: 68%;
    }
}

.apharm-trending-products .single-shopping-card-one.tranding-product {
    height: 100%;
    margin-bottom: 0;
}

.apharm-trending-products
    .single-shopping-card-one.tranding-product
    .thumbnail-preview
    img {
    object-fit: contain;
    object-position: center;
}

.apharm-trending-products
    .single-shopping-card-one.tranding-product
    .body-content {
    min-width: 0;
}

.apharm-trending-products .single-shopping-card-one.tranding-product .title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.apharm-category-feature .single-feature-card {
    position: relative;
    overflow: hidden;
}
body.apharm-store .swal2-popup {
    width: min(520px, calc(100vw - 32px)) !important;
    padding: 24px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
}

body.apharm-store .swal2-html-container {
    margin: 16px 20px 8px;
    font-size: 17px !important;
    line-height: 1.8 !important;
}

body.apharm-store .swal2-styled.swal2-confirm {
    min-width: 110px;
    padding: 11px 24px;
    font-size: 15px !important;
    border-radius: 8px;
}
.yosri-rich-content {
    color: inherit;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.apharm-product-description-layout {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
    direction: rtl;
}

.apharm-product-description-intro {
    margin-bottom: 24px;
    text-align: right;
}
.apharm-product-description-intro > :last-child {
    margin-bottom: 0;
}

.apharm-product-description-image {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.apharm-product-description-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.apharm-product-description-copy {
    min-width: 0;
    text-align: right;
}
.apharm-product-description-copy > :first-child {
    margin-top: 0;
}

@media (max-width: 767px) {
    .apharm-product-description-layout {
        grid-template-columns: 1fr;
    }
}

.yosri-rich-content img {
    max-width: 100%;
    height: auto;
}

.yosri-rich-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.yosri-rich-content th,
.yosri-rich-content td {
    padding: 10px 12px;
    border: 1px solid #dfe7e4;
}

.yosri-rich-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-inline-start: 4px solid var(--color-primary, #8b0020);
    background: #f7f8f8;
}

.footersubscribe-form .newsletter-email-row {
    display: flex;
    position: relative;
    width: 100%;
}

.single-footer-wized .footersubscribe-form .newsletter-email-row input {
    padding-inline-end: 120px;
}

.single-footer-wized .footersubscribe-form .newsletter-email-row button {
    position: absolute;
    inset-inline-end: 7px;
    top: 7px;
    /* left: auto; */
    right: auto;
    height: 36px;
    min-width: 105px;
    padding: 0 18px;
    transform: none;
    border-radius: 7px;
    background: var(--color-primary, #b10b35);
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: inherit;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.newsletter-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--color-primary, #8b0020);
}

.newsletter-feedback {
    min-height: 20px;
    margin: 6px 0 0;
    font-size: 13px;
}
/* Product reviews — Ekomart structure with A Pharm interaction and moderation states. */
.apharm-product-reviews {
    padding-top: 8px;
}
.apharm-product-reviews .product-details-review-product-style {
    justify-content: space-between;
}
.apharm-product-reviews .average-stars-area-left {
    min-width: 340px;
}
.apharm-review-breakdown .single-review {
    flex-direction: row !important;
    align-items: center !important;
}
.apharm-review-breakdown .progress {
    width: 200px !important;
    background: #edf0ee;
}
.apharm-review-breakdown .progress-bar {
    width: var(--review-progress) !important;
    background: var(--color-primary) !important;
}
.apharm-rating-input {
    display: flex;
    gap: 7px;
}
.apharm-rating-input label {
    cursor: pointer;
    margin: 0;
}
.apharm-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.apharm-rating-input i {
    font-size: 27px !important;
    color: #d7dcda !important;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}
.apharm-rating-input label.is-active i,
.apharm-rating-input label:hover i {
    color: #ff9933 !important;
    transform: translateY(-1px);
}
.apharm-review-recommend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: -5px 0 20px;
    color: #2c3c28;
}
.apharm-review-recommend > span {
    font-weight: 600;
}
.apharm-review-recommend label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
}
.apharm-review-recommend input {
    accent-color: var(--color-primary);
}
.apharm-review-honeypot {
    position: absolute !important;
    inset-inline-start: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.apharm-review-moderation-note {
    margin: 14px 0 0;
    color: #69756d;
    font-size: 13px;
}
.apharm-review-moderation-note i {
    color: var(--color-primary);
    margin-inline-end: 5px;
}
.apharm-review-alert {
    margin-bottom: 26px;
}
.apharm-review-list {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e7ebe8;
}
.apharm-review-list__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.apharm-review-list__heading h5 {
    margin: 0;
}
.apharm-review-list__heading > span {
    padding: 5px 11px;
    border-radius: 999px;
    background: #f1f4f2;
    color: #536057;
    font-size: 13px;
}
.apharm-review-card {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid #edf0ee;
}
.apharm-review-card__avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(177, 8, 48, 0.09);
    color: var(--color-primary);
    font-weight: 800;
}
.apharm-review-card__body {
    flex: 1;
    min-width: 0;
}
.apharm-review-card__body header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.apharm-review-card__body time {
    color: #879089;
    font-size: 13px;
    white-space: nowrap;
}
.apharm-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 8px;
    color: #16805b;
    font-size: 12px;
}
.apharm-review-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 7px 0 9px;
    color: #ff9933;
}
.apharm-review-card__rating > span {
    margin-inline-start: 10px;
    color: #16805b;
    font-size: 13px;
}
.apharm-review-card__body p {
    margin: 0;
    white-space: pre-line;
    color: #526057;
}
.apharm-review-empty {
    text-align: center;
    padding: 34px;
    border-radius: 12px;
    background: #f8faf9;
}
.apharm-review-empty > i {
    font-size: 32px;
    color: var(--color-primary);
}
.apharm-review-empty p {
    font-weight: 700;
    margin: 10px 0 2px;
}
.apharm-review-empty span {
    color: #7b867f;
}
.product-discription-tab-shop .nav-tabs .nav-link.active {
    background: var(--color-primary) !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    .apharm-product-reviews .average-stars-area-left {
        min-width: 0;
        width: 100%;
    }
    .apharm-review-breakdown .progress {
        width: min(150px, 35vw) !important;
    }
    .apharm-review-card__body header {
        flex-direction: column;
        gap: 4px;
    }
    .apharm-review-card {
        gap: 11px;
    }
    .apharm-review-card__avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .apharm-review-recommend {
        flex-wrap: wrap;
    }
    .apharm-review-list {
        margin-top: 32px;
    }
}
/* Product quantity: keep the numeric value visible between the Ekomart controls. */
.rts-product-details-section .details-product-area .cart-edits .quantity-edit {
    align-items: center;
    justify-content: space-between;
    height: 49px;
    overflow: hidden;
}
.rts-product-details-section
    .details-product-area
    .cart-edits
    .quantity-edit
    input.input[type="number"] {
    box-sizing: border-box;
    flex: 1 1 44px;
    width: 44px !important;
    min-width: 44px;
    max-width: 44px !important;
    height: 42px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #1f2f28 !important;
    text-align: center !important;
    line-height: 42px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.rts-product-details-section
    .details-product-area
    .cart-edits
    .quantity-edit
    input.input[type="number"]::-webkit-inner-spin-button,
.rts-product-details-section
    .details-product-area
    .cart-edits
    .quantity-edit
    input.input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.rts-product-details-section
    .details-product-area
    .cart-edits
    .quantity-edit
    .apharm-qty-button {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 38px;
    padding: 0;
    margin: 0;
}
