.skeleton-loading button,
.skeleton-loading div {
	background: #2f2f2f;
	background: linear-gradient(110deg, #333333 8%, #3f3f3f 18%, #333333 33%);
	background-size: 200% 100%;
}
.skeleton-loading .skeleton-image {
	aspect-ratio: 1;
}
@media (min-width: 680px) {
    .modal {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 240px;
        width: 100%;
    }
}
ion-nav-view .pane:not(.wmenu).product-modal,
ion-nav-view .pane:not(.wmenu).mehrnia-app-page {
    background-color: #181818 !important;
    background-image: none !important;
}
.gold-product.has-footer {
    bottom: 0;
}
.mehrnia-app-page {
    background-color: #181818;
    color: white;
    margin: 0 auto;
    padding: 0;
    direction: rtl;
}

.mehrnia-app-page .container {
    max-width: 500px;
    margin: 20px auto;
    background-color: #2f2f2f;
    border-radius: 20px;
    padding: 10px 20px;
}

/* product image */
.gold-product .product-image {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gold-product .product-image-container {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.gold-product .product-image-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}

/* product icons */
.gold-product .product-image-container button.icon-btn {
    z-index: 99;
}
.gold-product .product-image-container button.top-right {
    top: 10px;
    right: 10px;
    left: auto;
}
.gold-product .product-image-container button.top-left {
    top: 10px;
    left: 10px;
    right: auto;
}

.gold-product .product-image-container button.bottom-left {
    bottom: 10px;
    left: 10px;
}

.gold-product .product-image-container button.bottom-right {
    bottom: 10px;
    right: 10px;
    left: auto;
}

.gold-product .product-image-container button {
    position: absolute;
    background-color: #2f2f2f;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.gold-product .product-image-container button.like {
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/like.png');
}
.gold-product .product-image-container button.like.fill {
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/like-fill.png');
}
.gold-product .product-image-container button.bookmark {
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/bookmark.png');
}
.gold-product .product-image-container button.bookmark.fill {
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/bookmark-fill.png');
}
.gold-product .product-image-container button.bookmark pzz-favorite {
    opacity: 0;
    display: block;
    position: absolute;
    top: 0;
    right: 0px;
}
.gold-product .product-image-container button.share {
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/share.png');
}
.gold-product .product-image-container button.comments {
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/comments.png');
}

/* product header */
.mehrnia-app-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-height: 50px;
}

/* Left section - Slug */
.gold-product .product-header .slug {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.gold-product .product-header .slug-title {
    font-size: 13px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #c2962f;
    text-align: center;
}

.gold-product .product-header .slug-description {
    font-size: 12px;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Middle section - Logo */
.mehrnia-app-page .page-header .logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    margin-top: -25px; /* Negative margin to top */
    z-index: 99;
}

.mehrnia-app-page .page-header .logo img {
    width: 55px;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Right section - Store Code */
.mehrnia-app-page .page-header .store-name,
.gold-product .product-header .store-code {
    flex: 1;
    display: flex;
    justify-content: start;
    align-items: center;
    min-width: 0;
}

.mehrnia-app-page .gold-bg {
    background: linear-gradient(-5deg, #be7d2a 0%, #eed673 100%);
    color: #2f2f2f;
}
.mehrnia-app-page .page-header .store-name-value,
.mehrnia-app-page .product-header .store-code-value {
    font-weight: bold;
    font-size: 16px;
    padding: 3px 25px;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
    max-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .mehrnia-category-page,
    .gold-product {
        padding: 0 7px;
    }
    .mehrnia-app-page .container {
        padding: 10px;
        border-radius: 15px;
    }
    .mehrnia-app-page .page-header .logo img {
        width: 50px;
    }
    
    .gold-product .product-header .slug-title {
        font-size: 12px;
    }
    
    .gold-product .product-header .slug-description {
        font-size: 11px;
    }

    .mehrnia-app-page .page-header .store-name-value,
    .gold-product .product-header .store-code-value {
        font-size: 14px;
    }
}

.gold-product .store-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 15px;
    height: 40px;
    border-radius: 20px;
    background-color: white;
    color: #2f2f2f;
}

.gold-product .store-info .store-label {
    flex: 1;
    text-align: center;
    border-radius: 20px;
    line-height: 40px;
    width: 100px;
    height: 40px;
    align-self: flex-start;
    font-weight: 600;
    font-size: 13px;
}
.gold-product .store-info .store-name {
    flex: 2;
    text-align: center;
    line-height: 40px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gold-product .store-info .store-tel {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    align-self: flex-end;
}
.gold-product .store-info .store-tel a {
    width: 100%;
    height: 100%;
    background-image: url('/widgets/e-commerce/assets/img/mehrnia/app/phone.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* product info section */
.gold-product .product-info {
    margin-top: 20px;
}

.gold-product .product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 5px; */
}

.gold-product .product-info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    gap: 5px;
}

.gold-product .product-info-item-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    line-height: 30px;
}

.gold-product .product-info-item-icon img {
    width: 22px;
    height: auto;
}

.gold-product .product-info-item-label {
    font-size: 10px;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    flex: 1 0 auto;
}

.gold-product .product-info-item-value {
    font-size: 12px;
    color: #d4a64b;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.red-bg {
    background-color: #f04814;
    background-image: linear-gradient(-5deg, #8d0101 0%, #f04814 100%);
    color: white;
}
.gold-product .product-add-to-cart {
    margin-top: 15px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: row;
    height: 40px;
    overflow: hidden;
}

.gold-product .product-add-to-cart .price {
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex: 1.5;
    text-align: center;
    line-height: 40px;
}
.gold-product .product-add-to-cart .add-to-cart-button {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    line-height: 40px;
    background-color: white;
    color: #f04814;
    border-radius: 20px;
    height: 40px;
}

.gold-product .store-link {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.gold-product .store-link a {
    color: #2f2f2f;
    display: block;
    height: 40px;
    border-radius: 20px;
    min-width: 130px;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    align-items: center;
}
.gold-product .store-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gold-product .store-link-icon img {
    width: 25px;
    height: auto;
}
.gold-product .store-link-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    text-align: center;
}

@media (max-width: 350px) {
    .gold-product .product-header .slug-title {
        font-size: 9px;
        font-weight: 700;
    }
    
    .gold-product .product-header .slug-description {
        font-size: 8px;
    }
    .mehrnia-app-page .page-header .store-name-value,
    .gold-product .product-header .store-code-value {
        font-size: 12px;
    }

    .gold-product .product-info-item-label {
        font-size: 8px;
    }

    .gold-product .product-info-item-value {
        font-size: 9px;
    }
}


/*  category page */
.mehrnia-category-page .skeleton-item-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.mehrnia-category-page .skeleton-item {
    aspect-ratio: 1;
}

.mehrnia-category-page .category-header .buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: end;
}

.mehrnia-category-page .category-header .buttons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.mehrnia-category-page .category-header .buttons a img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.mehrnia-category-page .category-header .buttons a .cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Responsive adjustments for category header */
@media (max-width: 400px) {
    .mehrnia-category-page .category-header {
        padding: 12px 10px;
        margin: -10px -15px 0 -15px;
    }
    
    .mehrnia-category-page .category-header .buttons a {
        width: 30px;
        height: 30px;
    }
    .mehrnia-category-page .category-header .buttons {
        gap: 5px;
    }
}

.mehrnia-category-page .span-ion-slides {
    display: block;
    padding-top: 50%;
    background: #181818;
    overflow: hidden;
    border-radius: 15px;
}

.mehrnia-category-page .landing-slider a.box {
    display: block;
    padding-top: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.mehrnia-category-page .landing-slider {
    background-image: url(data:image/gif;base64,R0lGODlhKwALAPEAAP///wAAAIKCggAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAKwALAAACMoSOCMuW2diD88UKG95W88uF4DaGWFmhZid93pq+pwxnLUnXh8ou+sSz+T64oCAyTBUAACH5BAkKAAAALAAAAAArAAsAAAI9xI4IyyAPYWOxmoTHrHzzmGHe94xkmJifyqFKQ0pwLLgHa82xrekkDrIBZRQab1jyfY7KTtPimixiUsevAAAh+QQJCgAAACwAAAAAKwALAAACPYSOCMswD2FjqZpqW9xv4g8KE7d54XmMpNSgqLoOpgvC60xjNonnyc7p+VKamKw1zDCMR8rp8pksYlKorgAAIfkECQoAAAAsAAAAACsACwAAAkCEjgjLltnYmJS6Bxt+sfq5ZUyoNJ9HHlEqdCfFrqn7DrE2m7Wdj/2y45FkQ13t5itKdshFExC8YCLOEBX6AhQAADsAAAAAAAAAAAA=);
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 15px 0;
}

.mehrnia-category-page ion-slides {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
    overflow: hidden;
}

.mehrnia-category-page .landing-slider.one-slide a.box {
    border-radius: 15px;
}

/* Store Info Section - Bottom dark bar */
.mehrnia-category-page .store-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    position: relative;
    z-index: 10;
}

.mehrnia-category-page .store-info .social-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mehrnia-category-page .store-info .social-buttons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mehrnia-category-page .store-info .social-buttons a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mehrnia-category-page .store-info .phone-button {
    display: flex;
    align-items: center;
}

.mehrnia-category-page .store-info .phone-button a {
    font-weight: bold;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mehrnia-category-page .store-info .phone-button .phone-number {
    direction: ltr;
    text-align: left;
}

.mehrnia-category-page .store-info .phone-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

/* Responsive adjustments for store info */
@media (max-width: 400px) {    
    .mehrnia-category-page .store-info .social-buttons a {
        width: 35px;
        height: 35px;
    }
    
    .mehrnia-category-page .store-info .social-buttons a img {
        width: 18px;
        height: 18px;
    }
    
    .mehrnia-category-page .store-info .phone-button a {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .mehrnia-category-page .store-info .phone-button img {
        width: 14px;
        height: 14px;
    }
    
    .mehrnia-category-page .store-info .social-buttons {
        gap: 8px;
    }
}

/* Taxon Grid Layout */
.mehrnia-category-page .taxon-grid-container {
    margin: 20px 0;
}

.mehrnia-category-page .taxon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mehrnia-category-page .taxon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.taxon-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100px;
    max-height: 100px;
}

.mehrnia-category-page .taxon-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

.mehrnia-category-page .taxon-placeholder {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 14px;
}

.mehrnia-category-page .taxon-button {
    width: 100%;
    background: linear-gradient(-5deg, #973628 13%, #bb210a 56% 38%);
    border-radius: 22px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    min-height: 22px;
}

.mehrnia-category-page .taxon-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    direction: rtl;
}

/* Responsive adjustments for taxon grid */
@media (max-width: 420px) {
    .mehrnia-category-page .taxon-grid {
        gap: 30px;
    }
    
    .mehrnia-category-page .taxon-title {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .taxon-image-placeholder {
        max-width: 80px;
        max-height: 80px;
    }

    .mehrnia-category-page .taxon-grid {
        gap: 18px;
    }
    
    .mehrnia-category-page .taxon-title {
        font-size: 11px;
    }
}

/* Products Grid Layout */
.mehrnia-category-page .product-grid-container {
    margin: 10px 0;
}

.mehrnia-category-page .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mehrnia-category-page .product-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    position: relative;
    margin-bottom: 14px;
}

.mehrnia-category-page .product-card-header
{
    margin-bottom: 5px;
}

.mehrnia-category-page .product-code {
    color: #bf250b;
    font-weight: bold;
}

.mehrnia-category-page .star-icon {
    width: 32px;
}

.mehrnia-category-page .product-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    max-height: 200px;
}

.mehrnia-category-page .icons {
    width: 27px;
    height: 27px;
}

.mehrnia-category-page .product-card-header,
.mehrnia-category-page .product-action,
.mehrnia-category-page .product-image-container
 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mehrnia-category-page .product-title {
    font-size: 14px;
    font-weight: bold;
    color: #bf250b;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mehrnia-category-page .product-action {
    background: linear-gradient(-5deg, #973628 13%, #bb210a 56% 38%);
    color: white;
    border: none;
    border-radius: 20px;
    position: absolute;
    top: 95%;
    right: 8%;
    width: 85%;
    display: flex;
    justify-content: center;
}

.mehrnia-category-page .add-to-cart-btn {
    border: none;
    background: transparent;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

@media (max-width: 420px) {
    .mehrnia-category-page .product-action {
        top: 93%;
    }

    .mehrnia-category-page .add-to-cart-btn {
        padding: 4px 0px;
    }
}

@media (max-width: 320px) {        
    .mehrnia-category-page .product-grid {
        gap: 8px;
    }

    .mehrnia-category-page .product-item {
        padding: 8px;
    }
    
    .mehrnia-category-page .product-title {
        font-size: 12px;
        height: 43px;
    }

    .mehrnia-category-page .product-action {
        right: 6%;
        width: 118px;
    }

    .mehrnia-category-page .add-to-cart-btn {
        padding: 1px;
        font-size: 10px;
    }
}