﻿/* Mahartist — modern product detail panel (show.aspx) */

.product-info-panel {
    background: linear-gradient(
        165deg,
        #fff 0%,
        color-mix(in srgb, var(--brand-product-panel) 35%, #fff) 55%,
        color-mix(in srgb, var(--brand-primary) 4%, #fff) 100%
    );
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, #ece8e4);
    border-radius: 24px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.07);
}

.ma-product-detail-panel {
    padding: 0 !important;
}

.ma-product-detail-panel .ma-pdp-breadcrumb {
    margin-bottom: 0.35rem;
}

.ma-product-detail-panel .ma-pdp-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.95rem;
}

.ma-product-detail-panel .ma-pdp-breadcrumb .breadcrumb a {
    color: #888;
    transition: color 0.2s ease;
}

.ma-product-detail-panel .ma-pdp-breadcrumb .breadcrumb a:hover {
    color: var(--brand-primary);
}

.ma-product-detail-panel .ma-pdp-title,
.ma-product-detail-panel .ma-pdp-title a {
    display: block;
    margin: 0.65rem 0 0;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-text);
    text-align: start;
    white-space: normal;
}

.ma-product-detail-panel .ma-pdp-title a:hover {
    color: var(--brand-primary);
}

.ma-product-detail-panel .ma-pdp-subtitle {
    margin: 0.5rem 0 0;
}

.ma-product-detail-panel .ma-pdp-profile-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
    color: var(--brand-primary) !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.ma-pdp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ma-pdp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, #e6e2de);
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.03);
}

.ma-pdp-meta-label {
    color: #8a8580;
    font-size: 0.95rem;
    font-weight: 500;
}

.ma-pdp-meta-value,
.ma-pdp-meta-value a {
    color: var(--brand-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.ma-pdp-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 1.2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        color-mix(in srgb, var(--brand-product-panel) 55%, #fff)
    );
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ma-pdp-price-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #777;
    white-space: nowrap;
}

.ma-product-detail-panel .ma-pdp-price,
.ma-product-detail-panel .ma-pdp-price.product-price {
    margin: 0 !important;
    font-size: clamp(2rem, 3.8vw, 2.85rem) !important;
    font-weight: 800 !important;
    line-height: 1.2;
    color: var(--brand-primary) !important;
    text-align: end;
}

.ma-pdp-summary {
    margin-bottom: 1.1rem;
}

.ma-product-detail-panel .ma-pdp-desc,
.ma-product-detail-panel .ma-pdp-desc.product-short-desc {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.85;
    color: #5f5a55;
    text-align: start;
}

.ma-pdp-features {
    margin: 1.2rem 0 0;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 8%, #ece8e4);
}

.ma-pdp-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-text);
}

.ma-pdp-section-title::before {
    content: '';
    width: 4px;
    height: 1.15rem;
    border-radius: 4px;
    background: var(--brand-primary);
    flex-shrink: 0;
}

.ma-pdp-features-body {
    font-size: 1.25rem !important;
    line-height: 1.9 !important;
    color: #444;
}

.ma-pdp-features-body p,
.ma-pdp-features-body li,
.ma-pdp-features-body span,
.ma-pdp-features-body div,
.ma-pdp-features-body td,
.ma-pdp-features-body th,
.ma-pdp-features-body a {
    font-size: inherit !important;
    line-height: inherit !important;
    font-family: inherit !important;
}

.ma-pdp-features-body font,
.ma-pdp-features-body b,
.ma-pdp-features-body strong {
    font-size: inherit !important;
    font-weight: 700;
}

.ma-pdp-features-body ul,
.ma-pdp-features-body ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ma-pdp-features-body li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.5rem;
}

[dir="rtl"] .ma-pdp-features-body li {
    padding: 0.35rem 1.5rem 0.35rem 0;
}

.ma-pdp-features-body li::before {
    content: '';
    position: absolute;
    top: 0.85rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
    opacity: 0.8;
    left: 0;
}

[dir="rtl"] .ma-pdp-features-body li::before {
    left: auto;
    right: 0;
}

.ma-pdp-actions-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, #ece8e4);
    box-shadow: 0 4px 18px rgba(26, 26, 26, 0.04);
}

.ma-product-detail-panel .ma-pdp-stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.1rem !important;
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
}

.ma-product-detail-panel .ma-pdp-stock .ma-product-status-badge {
    font-size: 1.02rem;
    padding: 0.5rem 1.1rem;
    font-weight: 800;
}

.ma-pdp-stock-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
    color: #666;
}

.ma-pdp-stock-qty {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-text);
}

.ma-pdp-notice {
    margin: 0 0 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: #fff4e8;
    border: 1px solid #f0d4b8;
    color: #8a5a2b;
    font-size: 1rem;
    line-height: 1.6;
}

.ma-product-detail-panel .ma-pdp-form {
    margin: 0;
    line-height: normal;
    display: block;
    flex-wrap: nowrap;
}

/* Purchase row: qty stepper + add to cart */
.ma-pdp-purchase {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
}

.ma-pdp-qty-stepper {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    width: 10.5rem;
    height: 3.75rem;
    margin: 0 !important;
    border: 2px solid color-mix(in srgb, var(--brand-primary) 18%, #d8d4d0);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.05);
}

.ma-pdp-qty-stepper .quantity-minus,
.ma-pdp-qty-stepper .quantity-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-width: 3.25rem;
    margin: 0;
    padding: 0;
    cursor: pointer;
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 6%, #fff);
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
    font-size: 1.1rem;
    line-height: 1;
}

.ma-pdp-qty-stepper .quantity-minus::before,
.ma-pdp-qty-stepper .quantity-plus::before {
    font-size: 1.15rem;
    font-weight: 700;
}

.ma-pdp-qty-stepper .quantity-minus {
    border-inline-end: 1px solid color-mix(in srgb, var(--brand-primary) 12%, #e8e4e0);
}

.ma-pdp-qty-stepper .quantity-plus {
    border-inline-start: 1px solid color-mix(in srgb, var(--brand-primary) 12%, #e8e4e0);
}

.ma-pdp-qty-stepper .quantity-minus:hover,
.ma-pdp-qty-stepper .quantity-plus:hover {
    background: color-mix(in srgb, var(--brand-primary) 14%, #fff);
    color: var(--brand-primary);
}

.ma-pdp-qty-stepper .quantity-minus:active,
.ma-pdp-qty-stepper .quantity-plus:active {
    background: color-mix(in srgb, var(--brand-primary) 20%, #fff);
}

.ma-pdp-qty-stepper .quantity.form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 2.5rem;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-text);
    background: #fff;
    box-shadow: none;
    -moz-appearance: textfield;
}

.ma-pdp-qty-stepper .quantity.form-control::-webkit-outer-spin-button,
.ma-pdp-qty-stepper .quantity.form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ma-pdp-qty-stepper .quantity.form-control:focus {
    box-shadow: none;
    outline: none;
}

.ma-product-detail-panel .ma-pdp-add-btn,
.ma-product-detail-panel .ma-pdp-add-btn.ma-add-to-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 3.75rem;
    padding: 0 1.35rem;
    border: 0 !important;
    border-radius: 16px !important;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 28%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ma-product-detail-panel .ma-pdp-add-btn::before {
    font-family: 'riode';
    content: '\e942';
    font-size: 1.35rem;
    font-weight: 400;
    margin-inline-end: 0.6rem;
    line-height: 1;
}

.ma-product-detail-panel .ma-pdp-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-primary) 34%, transparent);
}

.ma-product-detail-panel .ma-pdp-add-btn.is-loading::before {
    opacity: 0;
    margin: 0;
    width: 0;
}

@media (max-width: 767px) {
    .product-info-panel {
        border-radius: 18px;
        margin-top: 0.5rem;
    }

    .ma-pdp-purchase {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ma-pdp-qty-stepper {
        width: 100%;
        max-width: 12.5rem;
        margin: 0 auto !important;
    }

    .ma-product-detail-panel .ma-pdp-add-btn {
        width: 100%;
        min-height: 3.85rem;
        font-size: 1.1rem;
    }

    .ma-pdp-price-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .ma-pdp-qty-stepper {
        width: 9.5rem;
    }

    .ma-product-detail-panel .ma-pdp-add-btn {
        font-size: 1.05rem;
        padding: 0 1rem;
    }
}
