/**
 * Mobile Product Detail Page Styles
 * Style: TikTok/Shopee mobile design
 *
 * @package GeneratePress_Child
 * @version 1.0.0
 */

/* ============================================
   MOBILE PRODUCT DETAIL - MPD
   ============================================ */

:root {
    --mpd-primary: #fe2c55;
    --mpd-primary-dark: #e11a4d;
    --mpd-bg: #f5f5f5;
    --mpd-white: #ffffff;
    --mpd-text: #111111;
    --mpd-text-secondary: #555555;
    --mpd-text-muted: #999999;
    --mpd-border: #f1f1f3;
    --mpd-border-heavy: #eeeeee;
    --mpd-yellow: #ffe01b;
    --mpd-green: #43b882;
    --mpd-orange: #ee4d2d;
}

/* Reset for MPD */
.mobile-pd {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--mpd-bg);
    color: var(--mpd-text);
    min-height: 100vh;
    padding-bottom: 80px;
    max-width: 100%;
    overflow-x: hidden;
}

.mobile-pd * {
    box-sizing: border-box;
}

/* ============================================
   STICKY HEADER
   ============================================ */
.mpd-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 52px;
    background: var(--mpd-white);
    border-bottom: 1px solid var(--mpd-border);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    max-width: 100%;
    overflow: hidden;
}

.mpd-header-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--mpd-text);
}

.mpd-header-btn:active {
    background: #f5f5f5;
}

.mpd-header-search {
    flex: 1;
    min-width: 0;
    height: 31px;
    border-radius: 6px;
    background: var(--mpd-border);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}

.mpd-header-search svg {
    flex-shrink: 0;
    color: #45484b;
}

.mpd-header-title {
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpd-cart-link {
    position: relative;
}

.mpd-cart-count {
    position: absolute;
    top: 4px;
    right: 0;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--mpd-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================
   STICKY TABS
   ============================================ */
.mpd-tabs {
    position: sticky;
    top: 52px;
    z-index: 30;
    background: var(--mpd-white);
    border-bottom: 1px solid var(--mpd-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mpd-tab {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--mpd-text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.mpd-tab.active {
    color: var(--mpd-text);
    font-weight: 900;
}

.mpd-tab-promo {
    color: var(--mpd-primary) !important;
}

.mpd-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 3px;
    background: var(--mpd-text);
    border-radius: 3px 3px 0 0;
    display: none;
}

.mpd-tab.active .mpd-tab-indicator {
    display: block;
}

/* ============================================
   IMAGE CAROUSEL
   ============================================ */
.mpd-carousel-section {
    background: var(--mpd-white);
    user-select: none;
}

.mpd-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 420 / 360;
    background: var(--mpd-white);
    overflow: hidden;
}

.mpd-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-out;
}

.mpd-carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.mpd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpd-slide-indicator {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    z-index: 10;
}

.mpd-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 4px;
    background: rgba(254, 44, 85, 0.1);
    padding: 4px 8px;
    color: var(--mpd-primary);
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

/* ============================================
   VOUCHER BANNER
   ============================================ */
.mpd-voucher-banner {
    position: relative;
    display: flex;
    height: 46px;
    width: 100%;
    overflow: hidden;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mpd-voucher-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.mpd-voucher-super {
    background: #f53563;
    clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
    padding-right: 16px;
}

.mpd-voucher-xtra {
    background: #39d3d1;
    clip-path: polygon(0 0, 94% 0, 100% 100%, 6% 100%);
    margin-left: -8px;
    padding: 0 16px;
}

.mpd-voucher-bonus {
    background: #ffe66a;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%);
    margin-left: -8px;
    padding-left: 12px;
    color: #101010;
}

.mpd-voucher-icon {
    font-style: italic;
    font-size: 14px;
}

.mpd-voucher-badge {
    border-radius: 3px;
    background: #050505;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    color: #ffe66a;
}

/* ============================================
   FLASH SALE BAR
   ============================================ */
.mpd-flash-sale {
    position: relative;
    display: flex;
    height: 58px;
    width: 100%;
    background: #f41e24;
    overflow: hidden;
    user-select: none;
}

.mpd-flash-sale-price {
    flex: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12px;
    padding-right: 24px;
    color: white;
}

.mpd-flash-sale-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mpd-flash-price {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.mpd-flash-price-original {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding-left: 26px;
}

.mpd-price-strike {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mpd-flash-discount {
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.mpd-flash-timer {
    flex: 5;
    background: var(--mpd-yellow);
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
}

.mpd-flash-timer-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mpd-flash-timer-label span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpd-pulse {
    animation: mpdPulse 1s ease-in-out infinite;
}

@keyframes mpdPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mpd-countdown {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.mpd-cd-digit {
    background: black;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

.mpd-cd-sep {
    color: black;
    font-weight: 700;
    font-size: 10px;
}

/* ============================================
   PRODUCT INFO
   ============================================ */
.mpd-product-info {
    background: var(--mpd-white);
    padding: 12px 12px 12px;
}

.mpd-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mpd-product-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--mpd-text);
    flex: 1;
    margin: 0;
}

.mpd-wishlist-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--mpd-text);
}

.mpd-wishlist-btn:active {
    background: #f6f6f6;
}

.mpd-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--mpd-text);
}

.mpd-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.mpd-review-count {
    color: #0c8fb6;
    font-weight: 600;
}

.mpd-meta-sep {
    color: var(--mpd-text);
}

.mpd-free-shipping {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #33cfd0;
    font-style: italic;
}

/* ============================================
   AWARD BAR
   ============================================ */
.mpd-award-bar {
    display: flex;
    height: 42px;
    align-items: center;
    background: #fff7ef;
    padding: 0 12px;
    font-size: 13px;
    color: #ad622c;
}

.mpd-award-title {
    font-weight: 700;
    margin-left: 8px;
}

.mpd-award-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ad622c;
    margin: 0 16px;
}

.mpd-award-desc {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.mpd-trust-badges {
    display: flex;
    height: 38px;
    align-items: center;
    gap: 8px;
    border-bottom: 8px solid var(--mpd-border-heavy);
    background: var(--mpd-white);
    padding: 0 8px;
    font-size: 11px;
    color: #333;
}

.mpd-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.mpd-trust-item svg {
    color: var(--mpd-yellow);
}

.mpd-trust-flex {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   OPTIONS SECTION
   ============================================ */
.mpd-options-section {
    background: var(--mpd-white);
    border-bottom: 8px solid var(--mpd-border-heavy);
    color: var(--mpd-text);
}

.mpd-option-row {
    display: flex;
    height: 68px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.mpd-option-row:active {
    background: #f8f8f8;
}

.mpd-option-label {
    font-size: 16px;
    font-weight: 900;
}

.mpd-option-value {
    font-size: 14px;
    color: var(--mpd-text);
}

.mpd-option-content {
    padding: 12px;
    border-top: 1px solid #ececec;
}

.mpd-option-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 8px;
}

/* Variant Grid */
.mpd-variant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mpd-variant-btn {
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    padding: 8px 12px;
    text-align: left;
    background: #fafafa;
    color: #222;
    cursor: pointer;
    transition: all 0.2s;
}

.mpd-variant-btn.active {
    border-color: var(--mpd-primary);
    background: #fff1f4;
    color: #d41445;
}

.mpd-variant-name {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.mpd-variant-price {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.mpd-variant-desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

/* Quantity */
.mpd-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.mpd-qty-label {
    font-size: 13px;
    color: #555;
}

.mpd-qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    background: #f2f2f2;
    padding: 2px;
    user-select: none;
}

.mpd-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
}

.mpd-qty-btn:hover:not(:disabled) {
    background: white;
}

.mpd-qty-btn:disabled {
    opacity: 0.3;
}

.mpd-qty-value {
    font-size: 12px;
    font-weight: 700;
    width: 32px;
    text-align: center;
    font-family: monospace;
}

/* Payment */
.mpd-payment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mpd-payment-info {
    flex: 1;
    min-width: 0;
}

.mpd-payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 14px;
}

.mpd-payment-badge {
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}

.mpd-badge-wallet {
    background: #66a52e;
}

.mpd-badge-transfer {
    background: #2563eb;
}

/* Shipping */
.mpd-shipping-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mpd-shipping-info {
    flex: 1;
}

.mpd-shipping-desc {
    margin-top: 4px;
    font-size: 13px;
    color: #555;
}

.mpd-shipping-badge {
    display: inline-block;
    margin-top: 8px;
    border: 1px solid #31d0d0;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #20b9bb;
}

.mpd-shipping-price {
    text-align: right;
    font-size: 14px;
}

.mpd-free-ship-text {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #20b9bb;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.mpd-reviews-section {
    background: var(--mpd-white);
    padding: 16px 12px;
    border-bottom: 8px solid #f9f9f9;
}

.mpd-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mpd-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.mpd-view-more {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
}

.mpd-rating-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.mpd-rating-big {
    font-size: 18px;
    font-weight: 900;
    color: var(--mpd-text);
}

.mpd-rating-max {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.mpd-rating-stars {
    display: flex;
    gap: 2px;
    margin-left: 4px;
}

/* Review Filters */
.mpd-review-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mpd-review-filters::-webkit-scrollbar {
    display: none;
}

.mpd-filter-chip {
    flex-shrink: 0;
    height: 30px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: var(--mpd-white);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.mpd-filter-chip:active {
    background: #f5f5f5;
}

/* Review Cards */
.mpd-reviews-list {
    margin-top: 16px;
}

.mpd-review-card {
    padding: 16px 0;
    border-bottom: 1px solid var(--mpd-border);
}

.mpd-review-card:first-child {
    border-top: none;
}

.mpd-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mpd-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.mpd-review-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mpd-text);
}

.mpd-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.mpd-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    font-weight: 500;
    margin: 0;
}

.mpd-review-date {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mpd-text-muted);
}

.mpd-no-reviews {
    text-align: center;
    padding: 32px 16px;
    color: var(--mpd-text-muted);
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */
.mpd-description-section {
    background: var(--mpd-white);
    padding: 16px 12px;
    border-bottom: 8px solid #f9f9f9;
}

/* Attribute Table */
.mpd-attr-table {
    border-top: 1px solid var(--mpd-border);
    border-bottom: 1px solid var(--mpd-border);
    margin-bottom: 16px;
}

.mpd-attr-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    font-size: 13px;
}

.mpd-attr-row + .mpd-attr-row {
    border-top: 1px solid var(--mpd-border);
}

.mpd-attr-label {
    width: 42%;
    flex-shrink: 0;
    color: #888;
    font-weight: 500;
}

.mpd-attr-value {
    flex: 1;
    color: var(--mpd-text);
    font-weight: 600;
}

/* Rich Description */
.mpd-product-description {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.mpd-product-description p {
    margin: 0 0 16px;
}

.mpd-product-description h3 {
    font-size: 15px;
    font-weight: 700;
    color: #e15927;
    margin: 16px 0 8px;
}

.mpd-product-description img {
    width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

.mpd-product-description ul,
.mpd-product-description ol {
    padding-left: 20px;
    margin: 12px 0;
}

.mpd-product-description li {
    margin-bottom: 4px;
}

/* ============================================
   PROMO / UPSELL SECTION
   ============================================ */
.mpd-promo-section {
    background: var(--mpd-white);
    padding: 16px 12px;
    border-bottom: 8px solid var(--mpd-border-heavy);
}

.mpd-promo-section .mpd-section-title {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.mpd-upsell-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpd-upsell-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ececec;
    background: var(--mpd-white);
}

.mpd-upsell-discount {
    position: absolute;
    top: -8px;
    right: -6px;
    background: var(--mpd-primary);
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.mpd-upsell-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mpd-upsell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpd-upsell-image svg {
    color: #ccc;
}

.mpd-upsell-info {
    flex: 1;
    min-width: 0;
}

.mpd-upsell-name {
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 0 4px;
}

.mpd-upsell-price {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.mpd-upsell-add {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--mpd-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.mpd-upsell-add:active {
    transform: scale(0.95);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.mpd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-top: 1px solid #e9e9e9;
    background: var(--mpd-white);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-width: 100%;
    overflow: hidden;
}

.mpd-bottom-item {
    flex: 0 0 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: var(--mpd-text);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.mpd-bottom-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.mpd-btn-demo {
    flex: 1;
    height: 44px;
    border: 2px solid var(--mpd-primary);
    background: var(--mpd-white);
    color: var(--mpd-primary);
    font-size: 13px;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
}

.mpd-btn-buy {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--mpd-primary) 0%, #ff3b6e 100%);
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
    transition: all 0.2s;
}

.mpd-btn-buy:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.25);
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.mpd-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 12px;
    padding-bottom: 12px;
    backdrop-filter: blur(4px);
}

.mpd-checkout-modal.active {
    display: flex;
}

.mpd-checkout-content {
    width: 100%;
    max-width: 400px;
    max-height: 78vh;
    background: var(--mpd-white);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.mpd-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
}

.mpd-checkout-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}

.mpd-checkout-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    margin: 2px 0 0;
}

.mpd-checkout-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    border: none;
    cursor: pointer;
}

.mpd-checkout-form {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(78vh - 60px);
}

.mpd-checkout-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #999;
}

.mpd-checkout-variant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.mpd-cv-btn {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 12px;
    text-align: left;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.mpd-cv-btn.active {
    border-color: var(--mpd-primary);
    background: #fff1f4;
    color: var(--mpd-primary);
    box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.15);
}

.mpd-cv-name {
    display: block;
    font-size: 14px;
    font-weight: 900;
}

.mpd-cv-price {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
}

/* Checkout Summary */
.mpd-checkout-summary {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 12px;
    margin-bottom: 16px;
}

.mpd-checkout-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mpd-checkout-summary-title {
    font-size: 14px;
    font-weight: 900;
    margin: 0;
}

.mpd-checkout-badge {
    border-radius: 20px;
    background: rgba(254, 44, 85, 0.1);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 900;
    color: var(--mpd-primary);
}

.mpd-checkout-item {
    border-radius: 12px;
    border: 1px solid #ececec;
    background: var(--mpd-white);
    padding: 10px;
    margin-bottom: 8px;
}

.mpd-checkout-item-info {
    display: flex;
    gap: 10px;
}

.mpd-checkout-item-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f6f9;
    flex-shrink: 0;
}

.mpd-checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpd-checkout-item-details {
    flex: 1;
    min-width: 0;
}

.mpd-checkout-item-name {
    font-size: 12px;
    font-weight: 900;
    line-clamp: 2;
    margin: 0 0 4px;
}

.mpd-checkout-item-qty {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin: 0;
}

.mpd-checkout-item-price {
    text-align: right;
    flex-shrink: 0;
}

.mpd-checkout-item-total {
    font-family: monospace;
    font-size: 14px;
    font-weight: 900;
    color: var(--mpd-primary);
    margin: 0;
}

.mpd-checkout-item-original {
    font-family: monospace;
    font-size: 11px;
    color: #ccc;
    text-decoration: line-through;
    margin: 2px 0 0;
}

/* Checkout Totals */
.mpd-checkout-totals {
    border-top: 1px solid #ececec;
    padding-top: 12px;
    margin-top: 8px;
}

.mpd-checkout-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.mpd-checkout-discount {
    color: var(--mpd-primary);
}

.mpd-checkout-final {
    font-size: 16px;
    font-weight: 900;
    padding-top: 8px;
    border-top: 1px solid #ececec;
    margin-top: 8px;
}

.mpd-checkout-final span:last-child {
    color: var(--mpd-primary);
    font-family: monospace;
}

/* Checkout Fields */
.mpd-checkout-fields {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.mpd-field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
}

.mpd-field-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: var(--mpd-white);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}

.mpd-field-input:focus {
    border-color: #e15927;
    box-shadow: 0 0 0 4px rgba(225, 89, 39, 0.1);
}

/* Checkout Submit */
.mpd-checkout-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--mpd-primary) 0%, #ff3b6e 100%);
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
}

.mpd-checkout-submit:active {
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================ */
@media (min-width: 768px) {
    .mobile-pd {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
    
    .mpd-bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes mpdFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mpd-review-card {
    animation: mpdFadeIn 0.3s ease-out;
}

.mpd-upsell-card {
    transition: all 0.2s;
}

.mpd-upsell-card:active {
    transform: scale(0.98);
}
