/**
 * Product Detail Page Styles
 * à¹à¸¢à¸à¸­à¸­à¸à¸ˆà¸²à¸ product_detail.php à¹€à¸žà¸·à¹ˆà¸­à¹ƒà¸«à¹‰à¸‡à¹ˆà¸²à¸¢à¸•à¹ˆà¸­à¸à¸²à¸£ maintain
 * Version: 1.0
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background: #fff3e0;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0px;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
}

@media (min-width: 768px) {
    .container {
        max-width: 414px;
        box-shadow: 0 0 30px rgba(0,0,0,0.3);
    }
}

/* ===== DESKTOP LAYOUT (match main.php, 1100px+) ===== */
.desktop-top-nav {
    display: none;
}

@media (min-width: 1100px) {
    body {
        background: #f5f5f5;
    }

    .app-header,
    .bottom-nav {
        display: none !important;
    }

    .desktop-top-nav {
        display: block;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid #eee;
    }

    .desktop-top-nav .dtn-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        height: 68px;
        display: flex;
        align-items: center;
        gap: 28px;
    }

    .dtn-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        flex-shrink: 0;
    }

    .dtn-logo {
        width: 38px;
        height: 38px;
        object-fit: contain;
        border-radius: 8px;
    }

    .dtn-brand-name {
        font-size: 1.25rem;
        font-weight: 800;
        color: #f87600;
        letter-spacing: 0;
    }

    .dtn-menu {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1;
        justify-content: center;
    }

    .dtn-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 10px;
        color: #555;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
    }

    .dtn-link i {
        font-size: 1rem;
        color: #888;
        transition: color 0.2s ease;
    }

    .dtn-link:hover {
        background: #fff5ec;
        color: #f87600;
    }

    .dtn-link:hover i {
        color: #f87600;
    }

    .dtn-link.active {
        background: linear-gradient(135deg, #f87600, #e65100);
        color: #fff;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(248, 118, 0, 0.3);
    }

    .dtn-link.active i {
        color: #fff;
    }

    .dtn-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        background: #e74c3c;
        color: #fff;
        border-radius: 10px;
        padding: 2px 6px;
        font-size: 0.65rem;
        font-weight: 700;
        line-height: 1;
        min-width: 18px;
        text-align: center;
        box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
        border: 2px solid #fff;
    }

    .dtn-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .dtn-icon-btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #f7f7f7;
        color: #555;
        text-decoration: none;
        font-size: 1.1rem;
        transition: all 0.2s ease;
    }

    .dtn-icon-btn:hover {
        background: #f87600;
        color: #fff;
        transform: scale(1.05);
    }

    .dtn-cart-count {
        position: absolute;
        top: -2px;
        right: -2px;
        background: #e74c3c;
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border: 2px solid #fff;
        box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    }

    .dtn-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 14px 6px 6px;
        background: #f7f7f7;
        border-radius: 30px;
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

    .dtn-profile:hover {
        background: #fff5ec;
        color: #f87600;
        box-shadow: 0 4px 12px rgba(248, 118, 0, 0.15);
    }

    .dtn-profile img,
    .dtn-profile i {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        background: #f87600;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .dtn-username {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    height: 90px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f87600, #e65100);
    box-shadow: 0 2px 20px rgba(248, 118, 0, 0.15);
}

@media (min-width: 768px) {
    .app-header {
        max-width: 414px;
    }
}

.menu-icon {
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.menu-icon:hover {
    color: #f8d7a6;
    transform: scale(1.1);
}

.app-header-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
    margin: 0 12px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
}

/* ===== CART ICON ===== */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.cart-icon-wrapper i {
    color: #ffffff;
    font-size: 1.4rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #e74c3c);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(255, 71, 87, 0.5);
    z-index: 10;
    min-width: 26px;
    animation: cartPulse 2s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes cartPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 3px 12px rgba(255, 71, 87, 0.5);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 4px 16px rgba(255, 71, 87, 0.7);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 3px 12px rgba(255, 71, 87, 0.5);
    }
}

.cart-icon-wrapper:hover .cart-count {
    animation: cartBounce 0.6s ease;
    background: linear-gradient(135deg, #ff3742, #d63031);
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
    60% { transform: scale(1.1); }
}

/* ===== PROFILE AVATAR ===== */
.profile-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar:hover {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.profile-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.profile-avatar-fallback:hover {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.3);
}

.profile-avatar-fallback svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 90px 0 90px 0;
}

/* ===== PRODUCT IMAGE ===== */
.product-image-section {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* ===== SWIPER PRODUCT GALLERY ===== */
.product-gallery-swiper {
    width: 100%;
    height: 350px;
}
.product-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-pagination .swiper-pagination-bullet {
    background: #f87600;
    opacity: 0.4;
}
.product-gallery-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Modal gallery swiper */
.modal-gallery-swiper {
    width: 100%;
    height: 100%;
}
.modal-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-gallery-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.modal-gallery-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.product-image-container {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    image-rendering: auto;
    image-rendering: smooth;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.product-image:hover {
    transform: scale(1.05);
}

.image-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    background: rgba(255,255,255,0.9);
}

.thumbnail {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
    image-rendering: auto;
    image-rendering: smooth;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #f87600;
    opacity: 1;
    box-shadow: 0 0 10px rgba(248,118,0,0.5);
}

/* ===== IMAGE NAVIGATION ===== */
.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-navigation:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===== FAVORITE BUTTON ===== */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.favorite-btn i {
    font-size: 18px;
    color: #d14e4e;
    pointer-events: none;
    transition: transform 0.25s;
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.08);
}

.favorite-btn.active {
    background: rgba(255, 255, 255, 0.92);
}

.favorite-btn.active i,
.favorite-btn i.favorited {
    color: #ff3b3b;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== ACTION ROW (Share & Stock) ===== */
.product-summary-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.action-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #F5F5DC;
}

.product-summary-top .action-row {
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border-top: none;
}

.right-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.product-summary-top .right-actions {
    width: 100%;
    align-items: flex-start;
}

.out-of-stock-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 4px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.out-of-stock-banner i {
    font-size: 1.15rem;
}

.share-btn {
    background: linear-gradient(135deg, #f87600 0%, #e65100 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(248,118,0,0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248,118,0,0.4);
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #636363;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 25px 20px 15px 20px;
    background: white;
    position: relative;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #061422ff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0px;
    padding: 5px;
    background: linear-gradient(135deg, #F5F5DC 0%, #FFF8DC 100%);
    border-radius: 12px;
    border: 1px solid #E3C9A3;
    justify-content: center;
    align-items: center;
    min-height: 20px;
    flex-direction: row;
}

.category-tag {
    background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
    color: white;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
}

.brand-tag {
    background: linear-gradient(135deg, #95561E 0%, #a66228 100%);
    color: white;
    border-radius: 12px;
    font-weight: 500;
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
}

.subcategory-tag {
    background: #ff960f;
    color: white;
    border-radius: 12px;
    font-weight: 500;
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
}

/* ===== PROMOJA SECTION ===== */
.promoja-section {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #E3C9A3;
    margin-top: 10px;
}

.promoja-section .section-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.promoja-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promoja-card {
    background: linear-gradient(135deg, #ff7043 0%, #ff5252 50%, #e91e63 100%);
    border-radius: 14px;
    padding: 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(255,82,82,0.22);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 70px;
    cursor: pointer;
}

/* PromoJa Card Image */
.promoja-card-image {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 0 0 14px;
}
.promoja-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.promoja-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,82,82,0.35);
}

.promoja-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* When no image, add left padding to content */
.promoja-card > .promoja-card-content:first-child {
    padding-left: 14px;
}

.promoja-badge {
    display: none;
}

.promoja-badge.dealer,
.promoja-badge.general {
    display: none;
}

.promoja-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0;
    color: white;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.promoja-description {
    font-size: 0.6rem;
    margin-bottom: 3px;
    opacity: 0.8;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promoja-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 8px 12px;
    position: relative;
    z-index: 1;
}

.promoja-details {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.promoja-amount {
    background: rgba(0,0,0,0.15);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 600;
    white-space: nowrap;
}

.promoja-reward {
    background: rgba(255,255,255,0.95);
    color: #e91e63;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.reward-free-item {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(16,185,129,0.35);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.reward-free-item:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
}

.reward-product-image {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.5);
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 1px 4px rgba(255,193,7,0.4); }
    50% { box-shadow: 0 2px 8px rgba(255,193,7,0.6); }
}

.promo-action-btn {
    display: none;
}

.promoja-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

/* PromoJa card arrow indicator */
.promoja-card-arrow {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    margin-right: 4px;
}

/* ===== PRICE DISPLAY ===== */
.product-pricing-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fff 100%);
    border: 1.5px solid rgba(248, 118, 0, 0.28);
    box-shadow: 0 4px 14px rgba(248, 118, 0, 0.10);
}

.price-display {
    font-size: clamp(1.85rem, 7vw, 2.55rem);
    font-weight: 900;
    color: #e65100;
    margin: 0;
    text-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    max-width: 100%;
    line-height: 1.1;
    min-width: 0;
    word-break: break-word;
    letter-spacing: -0.02em;
}

.price-display .regular-price {
    color: #e65100;
    font-weight: 900;
    font-size: inherit;
    line-height: 1.1;
}

.original-price {
    font-size: clamp(0.85rem, 2.8vw, 1rem);
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
    margin: 0;
    order: -1;
    width: 100%;
}

.price-display .tier-price {
    font-size: inherit;
    color: #e65100;
    font-weight: 900;
    margin: 0;
    text-shadow: none;
}

.promo-price {
    font-size: inherit;
    color: #e65100;
    font-weight: 900;
    margin: 0;
}

.promo-unit-badge {
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 5px;
    font-weight: 600;
    display: inline-block;
}

.price-type {
    font-size: 0.9rem;
    color: #e65100;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ===== PRICE TIERS ===== */
.price-tiers {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    margin-top: 0;
}

.price-tiers h3 {
    color: #f87600;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tier-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    background: #fff5ec;
    border: 1.5px solid #ffd4a8;
    padding: 10px;
    border-radius: 12px;
}

.tier-item {
    background: #fff;
    border: 1px solid #ffe0c0;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(248, 118, 0, 0.08);
}

.tier-quantity {
    color: #5c4033;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.tier-price {
    color: #e65100;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===== UNITS SELECTION ===== */
.units-section {
    padding: 20px;
    background: white;
    margin-top: 0px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #464646ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.units-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.units-show-more-btn {
    margin-top: 12px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px dashed #f87600;
    border-radius: 10px;
    background: #fff7ef;
    color: #e65100;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.units-show-more-btn:hover {
    background: #ffedd5;
    border-color: #e65100;
}

.units-show-more-btn.is-expanded {
    background: #fff;
    border-style: solid;
}

.unit-card[data-extra-unit="1"].is-collapsed {
    display: none;
}

.unit-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2f241c;
}

.unit-card::before {
    display: none;
}

.unit-card:hover {
    border-color: rgba(248, 118, 0, 0.45);
    transform: translateY(-1px);
}

.unit-card.active {
    border-color: #f87600;
    background: #fff7ed;
    color: #2f241c;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(248, 118, 0, 0.14);
}

.unit-card.active .unit-name,
.unit-card.active .unit-details,
.unit-card.active .unit-price {
    color: inherit;
}

.unit-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2f241c;
}

.unit-details {
    font-size: 0.8rem;
    opacity: 1;
    margin-bottom: 8px;
    color: #6b7280;
}

.unit-card.active .unit-details {
    color: #9a3412;
}

.unit-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e65100;
}

.unit-card.active .unit-price {
    color: #e65100;
}

/* ===== DISCOUNT BADGE ===== */
.discount-badge {
    background: linear-gradient(135deg, #f87600, #e65100);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(248, 118, 0, 0.3);
    border: 2px solid white;
    animation: pulse-discount 2s infinite;
}

.price-display .discount-badge {
    position: relative;
    top: auto;
    right: auto;
    font-size: 0.75rem;
    padding: 4px 8px;
    margin: 0;
    flex: 0 0 auto;
    white-space: nowrap;
    align-self: center;
}

@keyframes pulse-discount {
    0% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    }
}

/* ===== QUANTITY CONTROL ===== */
.quantity-section {
    padding: 20px;
    background: white;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f87600 0%, #e65100 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(139,69,19,0.3);
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 80px;
    height: 50px;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
}

.qty-input:focus {
    outline: none;
    border-color: #f87600;
    box-shadow: 0 0 0 3px rgba(248,118,0,0.1);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    padding: 20px;
    display: flex;
    gap: 15px;
    background: white;
}

.action-buttons-spacer {
    display: none;
}

.price-type-label {
    margin: 0;
    font-size: clamp(0.78rem, 2.6vw, 0.88rem);
    font-weight: 600;
    color: #e65100;
    letter-spacing: 0.01em;
    line-height: 1.35;
    max-width: 100%;
}

.product-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    width: 100%;
    margin: 0 0 14px;
    min-width: 0;
}

.product-status-row .stock-info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.35;
}

.product-status-row .stock-text {
    min-width: 0;
    word-break: break-word;
}

.product-status-row .share-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.stock-info.is-stock-ready .stock-ready {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 600;
    font-size: 0.85rem;
}

.stock-info .stock-real-hint {
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    margin-left: 4px;
}

.stock-info.is-out-of-stock {
    color: #dc3545;
}

.stock-info.is-stock-ready {
    color: #047857;
}

/* Sticky CTA bar â€” mobile / tablet phone-frame */
@media (max-width: 1099px) {
    .action-buttons {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        max-width: 414px;
        z-index: 980;
        padding: 8px 12px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    }

    .action-buttons-spacer {
        display: block;
        height: 62px;
    }

    .action-btn {
        min-height: 44px;
        padding: 10px 8px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }

    .main-content {
        padding-bottom: calc(78px + 62px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.action-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s;
    transform: translate(-50%, -50%);
}

.action-btn:active::before {
    width: 200px;
    height: 200px;
}

.btn-cart {
    background: #ff9e01;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 196, 0, 0.3);
}

.btn-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 196, 0, 0.4);
}

.btn-buy {
    background: #f93e3e;
    color: white;
    box-shadow: 0 10px 30px rgba(212, 18, 18, 0.3);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 18, 18, 0.4);
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    margin: 24px 0 10px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    isolation: isolate;
}

/* Section Header - Premium Pill Design */
.related-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 16px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-radius: 18px;
    border: 1px solid rgba(248,118,0,0.12);
    box-shadow: 0 4px 16px -4px rgba(248,118,0,0.10);
    position: relative;
    overflow: hidden;
}

.related-products .section-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #f87600, #e65100);
    border-radius: 18px 0 0 18px;
}

.related-products .section-title {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d2c1b;
    margin: 0;
    letter-spacing: .2px;
    gap: 8px;
}

.related-products .section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f87600, #e65100);
    color: #fff;
    font-size: .8rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px -2px rgba(248,118,0,0.35);
}

.related-products .section-link {
    color: #f87600;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff3e0, #fff);
    border: 1px solid rgba(248,118,0,0.18);
    box-shadow: 0 2px 8px -2px rgba(248,118,0,0.15);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.related-products .section-link::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .6rem;
    transition: transform .3s ease;
}

.related-products .section-link:hover {
    background: linear-gradient(135deg, #f87600, #e65100);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -3px rgba(248,118,0,0.4);
    border-color: transparent;
}

.related-products .section-link:hover::after {
    transform: translateX(2px);
}

/* Slider Container */
.products-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 4px 8px 4px;
    margin: 0;
    width: 100%;
    min-height: 170px;
    left: auto;
    right: auto;
}

.related-products .products-slider-container { 
    width: 100%;
    margin: 0;
    padding: 4px 2px 12px;
    overflow: hidden;
}

.related-products .swiper-wrapper { 
    width: auto; 
}

.related-products .swiper-slide:last-child { 
    margin-right: 0; 
}

.products-swiper {
    width: 100%;
    padding: 4px 2px 12px 2px;
    overflow: visible;
}

.related-products .swiper-slide { 
    width: auto; 
}

/* Product Cards - Premium Style */
.related-products .slider-product-card {
    background: #fff;
    border-radius: 20px;
    width: 155px;
    min-width: 155px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(0,0,0,0.04);
}

.related-products .slider-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(248,118,0,0.13), 0 2px 8px rgba(0,0,0,0.05);
    border-color: rgba(248,118,0,0.18);
}

.related-products .slider-product-card:active { 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248,118,0,0.10);
}

/* Product Image */
.related-products .product-image-wrapper { 
    aspect-ratio: 4/3; 
    height: auto; 
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
}

.related-products .product-image-wrapper img.product-image { 
    object-fit: contain; 
    width: 100%; 
    height: 100%; 
    padding: 8px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.related-products .slider-product-card:hover img.product-image { 
    transform: scale(1.05); 
}

/* Favorite Button */
.related-products .favorite-btn { 
    position: absolute;
    top: 8px; 
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all .25s ease;
    font-size: 0.72rem;
    color: #ccc;
}

.related-products .favorite-btn:hover {
    transform: scale(1.15);
    background: #fff;
    box-shadow: 0 3px 12px rgba(255,71,87,0.25);
}

.related-products .favorite-btn .fas { 
    color: #ff4757; 
}

.related-products .favorite-btn .favorited {
    color: #ff4757;
}

/* Product Info */
.related-products .product-info { 
    padding: 10px 12px 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 4px;
    flex: 1;
    position: relative;
}

.related-products .product-name { 
    font-size: .82rem; 
    font-weight: 600;
    color: #333;
    line-height: 1.35; 
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    display: -webkit-box; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 2px 0;
    min-height: 2.2em;
}

.related-products .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.related-products .price-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-products .current-price {
    font-size: .92rem;
    font-weight: 800;
    color: #e65100;
    letter-spacing: -.3px;
}

.related-products .original-price {
    font-size: .62rem;
    color: #bbb;
    text-decoration: line-through;
    line-height: 1.2;
}

.related-products .product-price { 
    font-size: .92rem;
    font-weight: 800;
    color: #e65100;
    letter-spacing: -.3px;
}

/* View Button */
.related-products .select-btn-slider { 
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f87600, #e65100);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    box-shadow: 0 3px 10px -2px rgba(248,118,0,0.40);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}

.related-products .select-btn-slider:hover { 
    transform: scale(1.12) translateY(-1px);
    box-shadow: 0 5px 16px -3px rgba(248,118,0,0.50); 
}

/* Tags */
.related-products .category-tag {
    background: none;
    color: #999;
    font-size: .55rem; 
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .1px;
}

.related-products .brand-tag { 
    background: none;
    color: #999;
    font-size: .55rem; 
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .1px;
}

.related-products .product-meta {
    margin-bottom: 0;
}

.related-products .category-brand-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.related-products .category-brand-info .category-tag + .brand-tag::before {
    content: "\00b7";
    margin-right: 4px;
    color: #ccc;
}

/* Badges */
.related-products .new-badge { 
    position: absolute;
    top: 8px; 
    left: 8px; 
    font-size: .58rem; 
    padding: 3px 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff4757, #e74c3c);
    color: #fff;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255,71,87,0.35);
    letter-spacing: .3px;
}

.related-products .discount-badge { 
    font-size: .55rem;
    background: linear-gradient(135deg, #ff4757, #e74c3c);
    color: white;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    align-self: flex-start;
}

/* Skeleton & Empty State */
.related-products .related-skeleton { 
    animation: pulse-related 1.2s ease-in-out infinite; 
    border-radius: 18px; 
    background: linear-gradient(90deg,#f5f0eb,#ebe5de,#f5f0eb); 
    background-size: 200% 100%; 
}

.related-products .related-empty { 
    font-size: .8rem;
    color: #999;
    text-align: center;
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.related-products .related-empty::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.4rem;
    color: #ddd;
}

@keyframes pulse-related { 
    0% { background-position: 0 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0 0; } 
}

@media (max-width: 480px) {
    .related-products .section-header {
        padding: 12px 14px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .related-products .section-header::before {
        width: 4px;
    }
    .related-products .section-title {
        font-size: .95rem;
    }
    .related-products .section-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: .7rem;
    }
    .related-products .section-link {
        font-size: .72rem;
        padding: 6px 12px;
    }
    .related-products .slider-product-card { 
        width: 100%; 
        min-width: 0;
        border-radius: 16px;
    }
    .related-products .product-image-wrapper {
        border-radius: 16px 16px 0 0;
    }
    .related-products .product-image-wrapper img.product-image {
        padding: 6px;
    }
    .related-products .product-info { 
        padding: 8px 9px 10px; 
    }
    .related-products .product-name {
        font-size: .76rem;
        min-height: auto;
    }
    .related-products .current-price,
    .related-products .product-price {
        font-size: .85rem;
    }
    .related-products .products-slider-container { 
        padding: 2px 0 8px; 
    }
    .related-products .select-btn-slider {
        width: 26px;
        height: 26px;
        font-size: .65rem;
    }
    .related-products .favorite-btn {
        width: 24px;
        height: 24px;
        font-size: .65rem;
    }
    .related-products .new-badge {
        font-size: .52rem;
        padding: 2px 6px;
    }
}

/* ===== SWIPER GENERAL ===== */
.products-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    transition-timing-function: linear;
}

.products-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
    height: auto;
    margin-right: 15px;
}

.products-swiper .product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 170px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.products-swiper .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(0,0,0,0.08);
}

.products-swiper .product-image-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.products-swiper .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    image-rendering: smooth;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products-swiper .product-card:hover .product-image {
    transform: scale(1.08);
}

.products-swiper .new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff4757, #e74c3c);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255,71,87,0.4);
}

.products-swiper .favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.products-swiper .favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.products-swiper .favorite-btn .favorited {
    color: #ff4757;
}

.products-swiper .product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-swiper .product-meta {
    margin-bottom: 0px;
}

.products-swiper .category-brand-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.products-swiper .category-tag {
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

.products-swiper .brand-tag {
    background: linear-gradient(135deg, #A56022, #8d4719);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

.products-swiper .product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    flex-grow: 1;
    margin-top: 5px;
}

.products-swiper .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.products-swiper .price-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.products-swiper .current-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e74c3c;
}

.products-swiper .original-price {
    font-size: 0.7rem;
    color: #999;
    text-decoration: line-through;
}

.products-swiper .discount-badge {
    background: linear-gradient(135deg, #ff4757, #e74c3c);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    align-self: flex-start;
}

.products-swiper .product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e74c3c;
}

.products-swiper .select-btn-slider {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #A56022, #8d4719);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(165,96,34,0.3);
}

.products-swiper .select-btn-slider:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(165,96,34,0.4);
}

/* ===== RESPONSIVE - PRODUCTS SLIDER ===== */
@media (max-width: 768px) {
    .products-slider-container {
        padding: 0 15px;
        margin: 0 -15px;
        width: calc(100vw);
        position: relative;
        left: 0%;
        right: 0%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 300px;
    }
    
    .products-swiper {
        padding: 15px 15px 20px 15px;
    }
    
    .products-swiper .swiper-slide {
        margin-right: 12px;
    }
    
    .products-swiper .swiper-slide:first-child {
        margin-left: 0;
    }
    
    .products-swiper .swiper-slide:last-child {
        margin-right: 15px;
    }
    
    .products-swiper .product-card {
        width: 160px;
        min-width: 160px;
    }
    
    .products-swiper .product-image-wrapper {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .products-slider-container {
        padding: 0 10px;
        width: calc(100vw);
        position: relative;
        left: 0%;
        right: 0%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 270px;
    }
    
    .products-swiper {
        padding: 10px 10px 15px 10px;
    }
    
    .products-swiper .swiper-slide {
        margin-right: 10px;
    }
    
    .products-swiper .swiper-slide:last-child {
        margin-right: 10px;
    }
    
    .products-swiper .product-card {
        width: 150px;
        min-width: 150px;
    }
    
    .products-swiper .product-image-wrapper {
        height: 110px;
    }
    
    .products-swiper .product-info {
        padding: 10px;
    }
    
    .products-swiper .product-name {
        font-size: 0.8rem;
        min-height: 2.4em;
        line-height: 1.3;
    }
    
    .products-swiper .current-price,
    .products-swiper .product-price {
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .products-swiper .original-price {
        font-size: 0.65rem;
    }
    
    .products-swiper .category-tag,
    .products-swiper .brand-tag {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    
    .products-swiper .select-btn-slider,
    .products-swiper .favorite-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .products-slider-container {
        padding: 0 8px;
        min-height: 260px;
    }
    
    .products-swiper {
        padding: 8px 8px 12px 8px;
    }
    
    .products-swiper .swiper-slide {
        margin-right: 8px;
    }
    
    .products-swiper .swiper-slide:last-child {
        margin-right: 8px;
    }
    
    .products-swiper .product-card {
        width: 140px;
        min-width: 140px;
    }
    
    .products-swiper .product-image-wrapper {
        height: 100px;
    }
    
    .products-swiper .product-info {
        padding: 8px;
    }
    
    .products-swiper .product-name {
        font-size: 0.75rem;
        min-height: 2.2em;
    }
    
    .products-swiper .current-price,
    .products-swiper .product-price {
        font-size: 0.8rem;
    }
    
    .products-swiper .original-price {
        font-size: 0.6rem;
    }
    
    .products-swiper .category-tag,
    .products-swiper .brand-tag {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
    
    .products-swiper .select-btn-slider,
    .products-swiper .favorite-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    /* PromoJa mobile adjustments */
    .promoja-section {
        padding: 8px 10px;
    }
    
    .promoja-cards {
        gap: 5px;
    }
    
    .promoja-card {
        height: 62px;
    }
    
    .promoja-card-image {
        width: 62px;
        height: 62px;
    }
    
    .promoja-title {
        font-size: 0.7rem;
    }
    
    .promoja-description {
        font-size: 0.55rem;
    }
    
    .promoja-amount,
    .promoja-reward,
    .reward-free-item {
        font-size: 0.52rem;
        padding: 1px 5px;
    }
    
    .reward-product-image {
        width: 12px;
        height: 12px;
    }
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 85px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 414px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #8A8A8E;
    position: relative;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    color: #ff9e00;
    background: rgba(175, 96, 5, 0.08);
}

.nav-item:hover {
    color: #ff9e00;
    background: rgba(175, 96, 5, 0.08);
    transform: translateY(-2px);
}

.nav-item svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-badge {
    position: absolute;
    top: -3px;
    right: 6px;
    background: #e74c3c;
    color: white;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* ===== NOTIFICATION ===== */
.notification {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border-left: 4px solid #27ae60;
    max-width: 100%;
    word-wrap: break-word;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 10000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.notification .notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification .notification-body {
    flex: 1;
    font-size: 0.92rem;
    color: #333;
    font-weight: 500;
}

.notification .notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.notification .notification-close:hover {
    color: #e74c3c;
}

.notification .notification-progress {
    display: none;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.notification.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.success .notification-icon {
    color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.error .notification-icon {
    color: #e74c3c;
}

.notification.info {
    border-left-color: #3498db;
}

.notification.info .notification-icon {
    color: #3498db;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification.warning .notification-icon {
    color: #f39c12;
}

/* ===== LOADING SPINNER ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f87600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: 30px;
}

.modal-nav-next {
    right: 30px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    .app-header {
        height: 70px;
        padding: 0 12px;
    }
    
    .app-header-title {
        font-size: 1.4rem;
    }
    
    .header-icons .cart-icon-wrapper,
    .profile-avatar,
    .profile-avatar-fallback {
        width: 36px;
        height: 36px;
    }
    
    .header-icons .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    .main-content {
        padding: 70px 0 85px 0;
    }
    
    .product-info {
        padding: 0px 15px;
    }
    
    .action-buttons {
        padding: 15px;
    }
    
    .qty-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .qty-input {
        width: 70px;
        height: 45px;
    }
    
    .bottom-nav {
        height: 80px;
        padding: 8px 0;
    }
    
    .nav-item svg {
        width: 26px;
        height: 26px;
    }
    
    .nav-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        height: 65px;
        padding: 0 10px;
    }
    
    .app-header-title {
        font-size: 1.2rem;
    }
    
    .slider-product-card {
        width: 145px;
        height: 265px;
    }
    
    .main-content {
        padding: 65px 0 75px 0;
    }
    
    .promoja-card {
        height: 75px;
    }
    
    .bottom-nav {
        height: 80px;
        padding: 6px 0;
    }
    
    .nav-item {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .nav-item svg {
        width: 26px;
        height: 26px;
    }
    
    .nav-item span {
        font-size: 0.65rem;
    }
}

/* ===== RELATED SWIPER â€” even horizontal row ===== */
.related-swiper {
    overflow: hidden;
    padding: 2px 0 6px;
}

.related-swiper .swiper-wrapper {
    align-items: stretch;
}

.related-swiper .swiper-slide,
.related-swiper .swiper-slide-active,
.related-swiper .swiper-slide-prev,
.related-swiper .swiper-slide-next,
.related-swiper .swiper-slide-duplicate {
    opacity: 1;
    transform: none;
    filter: none;
    z-index: 1;
}

.related-swiper .swiper-slide-active .slider-product-card,
.related-swiper .swiper-slide-prev .slider-product-card,
.related-swiper .swiper-slide-next .slider-product-card {
    transform: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.related-swiper .swiper-slide .slider-product-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ===== PRODUCT DETAILS ===== */
.product-details {
    margin: 20px 0;
    background: linear-gradient(135deg, #FAFAFA 0%, #F0F8FF 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #E6E6FA;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.details-title {
    color: #2C3E50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8E8E8;
}

.details-title i {
    color: #3498DB;
    font-size: 1.2rem;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s ease;
}

.detail-item:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.detail-label {
    font-weight: 600;
    color: #34495E;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.detail-label i {
    color: #3498DB;
    font-size: 0.9rem;
    width: 16px;
}

.detail-value {
    color: #5D6D7E;
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 3px solid #3498DB;
}

.info-label {
    font-weight: 500;
    color: #2C3E50;
    font-size: 0.9rem;
}

.info-text {
    color: #5D6D7E;
    font-weight: 500;
    font-size: 0.9rem;
}

.basic-info .detail-value {
    padding: 0;
}

@media (max-width: 768px) {
    .product-details {
        margin: 15px 0;
        padding: 15px;
    }

    .details-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .detail-item {
        padding: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-label {
        font-size: 0.95rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }
}

/* Basic info: no frames, plain text stacked */
.detail-item.basic-info {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.detail-item.basic-info .detail-label {
    background: transparent;
    border: none;
    padding: 0 0 6px 0;
    margin: 0;
}

.detail-item.basic-info .detail-value {
    padding: 0 !important;
    margin: 0;
}

.detail-item.basic-info .info-grid {
    display: block;
    grid-template-columns: none !important;
    gap: 0 !important;
}

.detail-item.basic-info .info-item {
    display: block;
    padding: 0;
    margin: 0 0 6px 0;
    background: transparent;
    border: none !important;
    border-left: none !important;
    box-shadow: none;
}

.detail-item.basic-info .info-label {
    font-weight: 500;
    color: #2C3E50;
    margin-right: 6px;
}

.detail-item.basic-info .info-text {
    color: #5D6D7E;
}

/* ===== SOCKET.IO ANIMATIONS ===== */
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== DESKTOP FINAL OVERRIDES ===== */
@media (min-width: 1100px) {
    body {
        background: #f5f5f5;
    }

    .container {
        max-width: none;
        width: 100%;
        min-height: 100vh;
        background: transparent;
        box-shadow: none;
    }

    .app-header,
    .bottom-nav {
        display: none !important;
    }

    .main-content {
        width: min(1600px, calc(100% - 48px));
        margin: 0 auto;
        padding: 24px 0 64px;
        display: grid;
        grid-template-columns: minmax(400px, 0.85fr) minmax(0, 1.15fr);
        gap: 18px 24px;
        align-items: start;
    }

    .main-content > *:not(.product-image-section):not(.related-products) {
        grid-column: 2;
        min-width: 0;
    }

    .product-image-section {
        grid-column: 1;
        grid-row: 1 / span 4;
        position: relative;
        top: auto;
        align-self: stretch;
        background: linear-gradient(180deg, #fffaf5 0%, #ffffff 44%, #fff7ef 100%);
        border-radius: 18px;
        border: 1px solid rgba(248, 118, 0, 0.16);
        box-shadow: 0 8px 24px rgba(54, 37, 21, 0.08);
        overflow: hidden;
        min-height: 548px;
    }

    .product-gallery-swiper,
    .product-image-container {
        height: 100%;
        min-height: 0;
    }

    .product-image-section:has(.image-thumbnails) .product-gallery-swiper {
        height: calc(100% - 104px);
        min-height: 390px;
    }

    .product-image-container {
        padding: 20px;
        background: transparent;
    }

    .product-image {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        border-radius: 14px;
        box-shadow: none;
        transform-origin: center;
    }

    .product-image:hover {
        transform: scale(1.025);
    }

    .image-thumbnails {
        justify-content: flex-start;
        padding: 16px 18px 18px;
        gap: 12px;
        border-top: 1px solid #f3eee8;
        background: #fff;
    }

    .thumbnail {
        min-width: 72px;
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }

    .favorite-btn {
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
        background: #fff;
        border: 1px solid rgba(255, 59, 59, 0.14);
        box-shadow: 0 8px 20px rgba(54, 37, 21, 0.14);
    }

    .product-info,
    .price-tiers,
    .promoja-section,
    .units-section,
    .quantity-section,
    .action-buttons {
        background: #fff;
        border-radius: 14px;
        border: 1px solid #f0ece8;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        margin: 0;
        padding: 12px 14px;
    }

    .product-info {
        grid-row: 1;
        padding: 12px 14px 10px;
        background: linear-gradient(135deg, #ffffff 0%, #fffaf4 100%);
        border-color: rgba(248, 118, 0, 0.16);
        box-shadow: 0 6px 18px rgba(54, 37, 21, 0.07);
        overflow: hidden;
    }

    .product-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #f87600, #ff3b3b);
    }

    .product-pricing-block {
        margin-bottom: 14px;
    }

    .product-status-row {
        gap: 12px 16px;
        margin-bottom: 16px;
    }

    .product-status-row .stock-info {
        font-size: 0.9rem;
        padding: 8px 12px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid rgba(248, 118, 0, 0.16);
        box-shadow: 0 2px 8px rgba(54, 37, 21, 0.06);
        white-space: normal;
    }

    .product-status-row .share-btn {
        border-radius: 999px;
        padding: 9px 15px;
        font-size: 0.88rem;
        min-height: 40px;
        box-shadow: 0 6px 16px rgba(248, 118, 0, 0.24);
        white-space: nowrap;
    }

    .price-display {
        margin: 0;
        max-width: 100%;
        font-size: clamp(1.7rem, 2vw, 2.2rem);
        line-height: 1.15;
        letter-spacing: 0;
        text-shadow: none;
    }

    .promo-price,
    .price-display .tier-price,
    .price-display .regular-price {
        font-size: inherit;
        margin: 0;
    }

    .original-price {
        font-size: 1rem;
    }

    .product-title {
        font-size: 1.35rem;
        line-height: 1.35;
        margin-bottom: 0;
        color: #2f241c;
    }

    .product-meta {
        justify-content: flex-start;
        padding: 0;
        background: transparent;
        border: none;
        gap: 8px;
    }

    .product-details {
        margin: 18px 0 0;
        border-radius: 14px;
        box-shadow: none;
    }

    .details-title {
        font-size: 1.1rem;
    }

    .tier-items-container {
        justify-content: flex-start;
        background: #fff5ec;
        border: 1px solid #ffe0c0;
    }

    .tier-item {
        flex: 0 0 auto;
        min-width: 120px;
        background: #fff;
    }

    .promoja-card {
        height: 86px;
        border-radius: 16px;
    }

    .promoja-card-image {
        width: 132px;
        height: 86px;
        border-radius: 16px 0 0 16px;
    }

    .promoja-title {
        font-size: 0.9rem;
    }

    .promoja-description {
        font-size: 0.72rem;
    }

    .units-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .unit-card {
        max-width: none;
        min-width: 0;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .unit-name {
        font-size: 0.95rem;
    }

    .unit-details {
        font-size: 0.78rem;
    }

    .unit-price {
        font-size: 1rem;
    }

    .quantity-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .quantity-section .section-title {
        margin-bottom: 0;
    }

    .quantity-control {
        margin-top: 0;
        justify-content: flex-end;
        gap: 12px;
    }

    .qty-btn {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
    }

    .qty-input {
        width: 76px;
        height: 46px;
        font-size: 1.1rem;
    }

    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        position: static;
        left: auto;
        transform: none;
        bottom: auto;
        max-width: none;
        width: auto;
        box-shadow: none;
        border-top: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        background: transparent;
    }

    .action-buttons-spacer {
        display: none !important;
    }

    .action-btn {
        min-height: 54px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .related-products {
        grid-column: 1 / -1;
        margin: 10px 0 0;
        padding: 0;
    }

    .related-products .section-header {
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .related-products .products-slider-container {
        padding: 4px 0 18px;
        min-height: 260px;
    }

    .related-swiper .swiper-slide,
    .related-swiper .swiper-slide-active,
    .related-swiper .swiper-slide-prev,
    .related-swiper .swiper-slide-next,
    .related-swiper .swiper-slide-duplicate {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .related-products .slider-product-card,
    .related-swiper .swiper-slide-active .slider-product-card {
        width: 220px;
        min-width: 220px;
        border: 1px solid rgba(248, 118, 0, 0.16);
        box-shadow: 0 4px 14px rgba(248, 118, 0, 0.12);
        transform: none;
    }

    .related-products .product-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .related-products .product-info {
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 12px 14px 14px;
    }
}

@media (min-width: 1500px) {
    .main-content {
        grid-template-columns: minmax(520px, 0.85fr) minmax(0, 1.15fr);
    }
}

/* =====================================================
   Product Detail â€” Modern refresh (PC + Mobile)
   ===================================================== */

:root {
    --pd-orange: #f87600;
    --pd-orange-dark: #e65100;
    --pd-bg: #f3f4f6;
    --pd-card: #ffffff;
    --pd-text: #1a1a1a;
    --pd-muted: #6b7280;
    --pd-radius: 18px;
    --pd-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

body {
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(248, 118, 0, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(230, 81, 0, 0.07), transparent 50%),
        var(--pd-bg) !important;
}

.container {
    background: transparent;
}

@media (max-width: 1099px) {
    .container {
        background: #fff;
        max-width: 480px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    }
}

.product-image-section {
    background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
    border-radius: 0 0 24px 24px;
}

.product-gallery-swiper,
.product-image-container {
    min-height: 320px;
}

.product-image {
    box-shadow: none;
    border-radius: 12px;
    background: transparent;
}

.image-thumbnails {
    display: flex;
    gap: 6px;
    padding: 6px 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.image-thumbnails::-webkit-scrollbar { display: none; }

.image-thumbnails img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.image-thumbnails img.active,
.image-thumbnails img:hover {
    border-color: var(--pd-orange);
    transform: translateY(-2px);
}

.product-info {
    padding: 6px 12px 0 !important;
}

.product-pricing-block {
    margin: 0 0 8px;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fff 100%);
    border: 1.5px solid rgba(248, 118, 0, 0.28);
    box-shadow: 0 4px 14px rgba(248, 118, 0, 0.10);
}

.price-display {
    font-size: clamp(1.9rem, 7.2vw, 2.6rem);
    font-weight: 900;
    color: #e65100;
    line-height: 1.08;
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    letter-spacing: -0.02em;
}

.price-display .regular-price,
.price-display .promo-price,
.price-display .tier-price {
    font-size: inherit;
    font-weight: 900;
    line-height: 1.08;
    margin: 0;
    color: #e65100;
}

.price-display .original-price {
    font-size: 0.92rem;
    color: #9ca3af;
    font-weight: 500;
    width: 100%;
    order: -1;
}

.price-display .discount-badge {
    font-size: 0.82rem !important;
    padding: 5px 10px !important;
    font-weight: 800 !important;
    align-self: center;
}

.price-type-label {
    margin: 2px 0 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #c2410c;
}

.product-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 8px;
    margin: 0 0 8px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 2px 0 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
}

.category-tag,
.subcategory-tag,
.brand-tag,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fff5ec;
    color: #9a3412;
    border: 1px solid #ffedd5;
}

.stock-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.8rem;
    color: var(--pd-muted);
}

.share-btn {
    border-radius: 999px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #374151 !important;
    font-weight: 600;
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
    gap: 5px !important;
}

.price-tiers,
.pos-price-ladder,
.units-section,
.quantity-section,
.product-details,
.promotions-section,
.promoja-section,
.related-products {
    margin: 6px 0 !important;
    padding: 10px 12px !important;
    background: var(--pd-card);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.section-title,
.price-tiers h3 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--pd-text) !important;
    margin: 0 0 6px !important;
    gap: 6px !important;
}

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

.unit-card {
    border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 8px 10px !important;
    background: #fff !important;
    color: #2f241c !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    min-width: 0 !important;
    max-width: none !important;
}

.unit-card.active {
    border-color: var(--pd-orange) !important;
    background: #fff7ed !important;
    color: #2f241c !important;
    box-shadow: 0 0 0 3px rgba(248, 118, 0, 0.12);
}

.unit-card .unit-name {
    color: #2f241c !important;
}

.unit-card .unit-details {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.unit-card .unit-price,
.unit-card.active .unit-price {
    color: #e65100 !important;
}

.unit-card.active .unit-name {
    color: #9a3412 !important;
}

.unit-card.active .unit-details {
    color: #c2410c !important;
}

.unit-card:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 118, 0, 0.45) !important;
}

.price-tiers {
    margin-top: 0 !important;
}

.tier-items-container {
    background: #fff5ec !important;
    border: 1px solid #ffd4a8 !important;
    padding: 6px !important;
    gap: 6px !important;
    border-radius: 10px !important;
}

.tier-item {
    background: #fff !important;
    border: 1px solid #ffe0c0;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    min-width: 72px !important;
}

.tier-quantity {
    color: #5c4033 !important;
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
}

.tier-price {
    color: #e65100 !important;
    font-size: 0.88rem !important;
}

.unit-name {
    font-size: 0.9rem !important;
    margin-bottom: 2px !important;
}

.unit-details {
    font-size: 0.72rem !important;
    margin-bottom: 4px !important;
}

.unit-price {
    font-size: 0.98rem !important;
}

.discount-badge,
.price-display .discount-badge {
    background: linear-gradient(135deg, #f87600, #e65100) !important;
    border-color: #fff !important;
    box-shadow: 0 2px 8px rgba(248, 118, 0, 0.28) !important;
}

.quantity-section .quantity-control,
.quantity-control {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-top: 0 !important;
    gap: 10px !important;
    padding: 6px 8px;
}

.quantity-control .qty-btn,
.qty-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    box-shadow: 0 3px 10px rgba(248, 118, 0, 0.22) !important;
}

.quantity-control .qty-input,
.qty-input {
    width: 64px !important;
    height: 40px !important;
    font-size: 1.05rem !important;
    border-radius: 10px !important;
}

.action-buttons {
    padding: 8px 12px !important;
    gap: 8px !important;
}

.action-btn {
    padding: 10px 8px !important;
    font-size: 0.95rem !important;
    gap: 6px !important;
    border-radius: 12px !important;
    min-height: 44px;
}

.action-btn.btn-cart {
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%) !important;
    color: var(--pd-orange) !important;
    border: 2px solid var(--pd-orange) !important;
}

.action-btn.btn-buy {
    background: linear-gradient(135deg, var(--pd-orange) 0%, var(--pd-orange-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(248, 118, 0, 0.24);
}

/* Related products â€” horizontal single-row scroll (all screens) */
.related-products .products-slider-container {
    overflow: hidden;
    padding: 2px 0 8px;
    min-height: 0;
    width: 100%;
}

.related-products .related-swiper,
.related-swiper {
    overflow: hidden !important;
    padding: 2px 0 6px !important;
    width: 100%;
}

.related-products .swiper-wrapper,
.related-swiper .swiper-wrapper {
    display: flex !important;
    align-items: stretch;
    grid-template-columns: none !important;
}

.related-products .swiper-slide,
.related-swiper .swiper-slide {
    height: auto;
    opacity: 1;
    filter: none;
    flex-shrink: 0;
}

.related-products .slider-product-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.related-products .product-image-wrapper {
    background: #fafafa;
}

.related-products .product-image-wrapper img.product-image {
    padding: 8px;
}

/* Disable old grid mode if class still present */
.related-grid-mode .swiper-wrapper,
.related-grid-track {
    display: flex !important;
    grid-template-columns: none !important;
    width: auto !important;
    gap: 0 !important;
    transform: none !important;
}

.related-grid-mode .swiper-slide,
.related-grid-track > .swiper-slide {
    width: auto !important;
    margin: 0 !important;
}

.related-grid-mode .slider-product-card,
.related-grid-track .slider-product-card {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
}

@media (min-width: 1100px) {
    body {
        background:
            radial-gradient(ellipse 60% 40% at 10% -5%, rgba(248, 118, 0, 0.1), transparent 50%),
            #f3f4f6 !important;
    }

    .container {
        max-width: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .main-content {
        max-width: 1180px;
        margin: 12px auto 32px;
        padding: 0 16px 24px !important;
        gap: 14px;
    }

    .product-image-section {
        border-radius: 24px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: var(--pd-shadow);
        background: #fff;
        overflow: hidden;
        position: sticky;
        top: 88px;
        align-self: start;
    }

    .product-gallery-swiper,
    .product-image-container {
        min-height: 420px;
        height: 420px;
    }

    .product-info,
    .price-tiers,
    .units-section,
    .quantity-section,
    .product-details,
    .promotions-section,
    .promoja-section {
        background: #fff;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: var(--pd-shadow);
        padding: 14px 16px !important;
        margin: 0 0 10px !important;
    }

    .product-info {
        padding-top: 14px !important;
    }

    .related-products {
        grid-column: 1 / -1;
        margin-top: 8px !important;
        padding: 12px 14px !important;
    }

    .related-products .section-header {
        margin-bottom: 10px;
        padding: 10px 14px;
    }

    .related-products .products-slider-container {
        overflow: hidden;
        padding: 2px 0 6px;
    }

    .related-products .slider-product-card,
    .related-swiper .swiper-slide-active .slider-product-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .related-products .slider-product-card:hover {
        border-color: rgba(248, 118, 0, 0.35);
        box-shadow: 0 8px 20px rgba(248, 118, 0, 0.12);
    }

    .units-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .action-buttons {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .product-pricing-block,
    .product-status-row,
    .price-display {
        max-width: 100%;
    }

    .price-display {
        font-size: clamp(2.2rem, 2.6vw, 2.8rem);
        font-weight: 900;
    }

    .product-pricing-block {
        padding: 12px 16px;
    }

    .product-title {
        margin: 0 0 8px;
    }

    .product-pricing-block,
    .product-status-row {
        margin-bottom: 10px;
    }

    .section-title,
    .price-tiers h3 {
        margin-bottom: 8px !important;
    }

    .unit-card {
        padding: 10px 12px !important;
    }

    .action-buttons {
        margin-top: 4px;
        gap: 10px !important;
    }

    .action-btn {
        min-height: 48px;
        padding: 12px 10px !important;
    }
}

/* ===== Compact layout overrides (all screens) ===== */
@media (max-width: 1099px) {
    .main-content {
        padding-top: 72px !important;
    }

    .product-gallery-swiper,
    .product-image-container {
        min-height: 280px !important;
        height: auto !important;
    }

    .product-image-section {
        border-radius: 0 0 16px 16px;
        margin-bottom: 0;
    }

    .out-of-stock-banner {
        padding: 8px 12px;
        margin: 0 0 8px;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .product-details .details-title {
        margin-bottom: 8px !important;
        font-size: 0.95rem !important;
    }

    .detail-item {
        margin-bottom: 8px !important;
    }

    .related-products {
        margin-top: 8px !important;
        padding: 10px 12px !important;
    }

    .related-products .section-header {
        margin-bottom: 8px !important;
        padding: 0 !important;
    }
}

/* =====================================================
   Shop-app redesign â€” gallery, info sheet, chips, sticky bar
   Scoped to body.pd-page so existing modal / related / nav stay intact
   ===================================================== */
body.pd-page {
    background: #fff !important;
}

body.pd-page .container {
    background: #fff;
}

body.pd-page .bottom-nav {
    display: none !important;
}

body.pd-page .pd-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    padding: 0 12px;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border: none;
    justify-content: space-between;
    pointer-events: none;
}

body.pd-page .pd-header .menu-icon,
body.pd-page .pd-header-share,
body.pd-page .pd-header .cart-icon-wrapper {
    pointer-events: auto;
}

body.pd-page .pd-header.is-scrolled {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.pd-page .pd-header .menu-icon,
body.pd-page .pd-header-share,
body.pd-page .pd-header .cart-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
}

body.pd-page .pd-header .menu-icon:hover,
body.pd-page .pd-header-share:hover,
body.pd-page .pd-header .cart-icon-wrapper:hover {
    color: #fff;
    transform: none;
    background: rgba(0, 0, 0, 0.42);
}

body.pd-page .pd-header-share {
    appearance: none;
    padding: 0;
}

body.pd-page .pd-header .cart-icon-wrapper i {
    color: #fff;
    font-size: 1.05rem;
}

body.pd-page .pd-header .cart-count {
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 0.65rem;
    top: -4px;
    right: -4px;
    border-width: 2px;
}

body.pd-page .pd-header .header-icons {
    gap: 8px;
}

body.pd-page .main-content.pd-layout {
    padding: 0 0 24px !important;
}

body.pd-page .product-image-section {
    position: relative;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}

body.pd-page .product-gallery-swiper,
body.pd-page .product-image-container,
body.pd-page #temp-unit-image {
    width: 100%;
    height: min(78vw, 420px);
    min-height: 280px;
    padding: 16px 16px 24px;
}

body.pd-page .product-image-section .product-image {
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.pd-page .product-image-section .product-image:hover {
    transform: none;
}

body.pd-page .product-gallery-pagination {
    bottom: 10px !important;
}

body.pd-page #thumb-strip {
    display: none !important;
}

body.pd-page .product-image-section > .favorite-btn {
    top: 64px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    box-shadow: none;
}

body.pd-page .pd-promo-badge {
    position: absolute;
    top: 64px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #f87600, #e65100);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(248, 118, 0, 0.28);
}

body.pd-page .pd-stock-overlay {
    position: absolute;
    right: 12px;
    bottom: 16px;
    z-index: 11;
    max-width: calc(100% - 24px);
    pointer-events: none;
}

body.pd-page .pd-stock-overlay .stock-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #e65100;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: none;
    line-height: 1.2;
}

body.pd-page .pd-stock-overlay .stock-info.is-out-of-stock {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.35);
}

body.pd-page .pd-stock-overlay .stock-info.is-stock-ready {
    color: #047857;
    border-color: rgba(4, 120, 87, 0.28);
}

body.pd-page .pd-info-col {
    position: relative;
    z-index: 2;
    margin-top: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 12px;
    display: flex;
    flex-direction: column;
}

body.pd-page .pd-info-col > .product-info { order: 0; }
body.pd-page .pd-info-col > .units-section { order: 1; }
body.pd-page .pd-info-col > .promoja-section { order: 2; }
body.pd-page .pd-info-col > .pd-details { order: 3; }
body.pd-page .pd-info-col > .pd-sticky-bar { order: 4; }

body.pd-page .product-info.pd-sheet {
    padding: 18px 16px 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

body.pd-page .product-info.pd-sheet::before {
    display: none;
}

body.pd-page .product-title {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f1a16;
    margin: 0 0 10px;
}

body.pd-page .product-pricing-block {
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: none;
}

body.pd-page .price-display {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    font-size: 1.85rem;
    font-weight: 800;
    color: #f87600;
    letter-spacing: -0.02em;
}

body.pd-page .price-display .regular-price,
body.pd-page .price-display .promo-price {
    color: #f87600;
    font-size: inherit;
    font-weight: 800;
}

body.pd-page .price-display .original-price {
    font-size: 0.95rem;
    color: #9aa0a6;
    text-decoration: line-through;
    font-weight: 500;
}

body.pd-page .price-display .discount-badge,
body.pd-page .price-display .promo-unit-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: #fff1e6;
    color: #e65100;
    border-radius: 999px;
    padding: 3px 8px;
}

body.pd-page .price-type-label {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #8a8178;
    font-weight: 500;
}

body.pd-page .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 10px;
    background: none;
    border: none;
    justify-content: flex-start;
    min-height: 0;
}

body.pd-page .category-tag,
body.pd-page .brand-tag,
body.pd-page .subcategory-tag {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    background: #fff4ea;
    color: #e65100;
    border: 1px solid rgba(248, 118, 0, 0.28);
}

body.pd-page .product-status-row {
    display: none;
}

body.pd-page .units-section,
body.pd-page .promoja-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 8px 16px 12px !important;
}

body.pd-page .units-section .section-title,
body.pd-page .promoja-section .section-title {
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: #2f241c;
}

body.pd-page .units-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    overflow: visible;
    scrollbar-width: none;
    padding-bottom: 4px;
}

body.pd-page .units-grid::-webkit-scrollbar {
    display: none;
}

body.pd-page .unit-card {
    flex: 0 0 auto;
    min-width: 118px;
    max-width: none;
    width: auto;
    padding: 8px 14px !important;
    border-radius: 999px;
    border: 1.5px solid #e8e2db;
    background: #fff;
    align-items: flex-start;
    text-align: left;
    box-shadow: none;
    transform: none;
}

body.pd-page .unit-card:hover {
    transform: none;
    border-color: rgba(248, 118, 0, 0.45);
}

body.pd-page .unit-card.active {
    background: #fff7ef;
    border-color: #f87600;
    box-shadow: 0 0 0 3px rgba(248, 118, 0, 0.12);
}

body.pd-page .unit-card.active .unit-name,
body.pd-page .unit-card.active .unit-details,
body.pd-page .unit-card.active .unit-price {
    color: inherit;
}

body.pd-page .unit-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #2f241c;
    margin: 0;
}

body.pd-page .unit-details {
    font-size: 0.68rem;
    color: #8a8178;
    margin: 1px 0 0;
}

body.pd-page .unit-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f87600;
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

body.pd-page .unit-price-retail {
    color: #16a34a;
    font-weight: 800;
}

body.pd-page .pos-wholesale {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
}

body.pd-page .price-display .pos-wholesale,
body.pd-page .pd-sticky-price .pos-wholesale {
    font-size: 0.78rem;
    margin-left: 6px;
    font-weight: 600;
    color: #9ca3af;
    vertical-align: baseline;
}

body.pd-page .unit-price-old {
    text-decoration: line-through;
    opacity: 0.55;
    font-weight: 500;
    color: #8a8178;
}

body.pd-page .unit-price-now {
    color: #ff4757;
}

body.pd-page .unit-card .discount-badge {
    position: absolute;
    top: -6px;
    right: 8px;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 999px;
}

body.pd-page .units-show-more-btn {
    width: auto;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
}

body.pd-page .promoja-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.pd-page .promoja-card {
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid #ffe0d0;
    background: linear-gradient(90deg, #fff8f3, #fff);
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

body.pd-page .promoja-card-image {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
}

body.pd-page .promoja-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.pd-page .promoja-title {
    font-size: 0.82rem;
    margin: 0 0 2px;
}

body.pd-page .promoja-description {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.pd-page .promoja-card-arrow {
    margin-left: auto;
    color: #c4b8ae;
}

body.pd-page .pd-details {
    margin: 4px 16px 12px;
    padding: 0;
    background: #fff;
    border: 1px solid #f3eee8;
    border-radius: 14px;
    box-shadow: none;
}

body.pd-page .pd-details > summary.details-title {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-bottom: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f241c;
}

body.pd-page .pd-details > summary.details-title::-webkit-details-marker {
    display: none;
}

body.pd-page .pd-details-chevron {
    color: #8a8178;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

body.pd-page .pd-details[open] .pd-details-chevron {
    transform: rotate(180deg);
}

body.pd-page .pd-details .details-content {
    padding: 0 14px 12px;
    gap: 8px;
}

body.pd-page .pd-details .detail-item {
    padding: 8px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.pd-page .pd-details .detail-item:hover {
    transform: none;
    box-shadow: none;
}

body.pd-page .pd-details .detail-label {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 4px;
    font-size: 0.78rem;
    color: #8a8178;
}

body.pd-page .pd-details .detail-value {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4a433c;
}

body.pd-page .pd-details .detail-item:first-of-type .detail-value {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.pd-page .pd-sticky-bar {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    z-index: 990;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "price qty"
        "cart buy";
    gap: 8px 10px;
    align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
}

body.pd-page .pd-sticky-price {
    grid-area: price;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f87600;
    line-height: 1.2;
}

body.pd-page .pd-sticky-price .regular-price,
body.pd-page .pd-sticky-price .promo-price {
    color: #f87600;
    font-size: inherit;
}

body.pd-page .pd-sticky-price .original-price {
    font-size: 0.75rem;
    color: #9aa0a6;
    text-decoration: line-through;
    font-weight: 500;
}

body.pd-page .pd-sticky-price .discount-badge,
body.pd-page .pd-sticky-price .promo-unit-badge {
    display: none;
}

body.pd-page .pd-sticky-bar .quantity-control {
    grid-area: qty;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 999px;
    overflow: hidden;
    background: #f7f5f2;
}

body.pd-page .pd-sticky-bar .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #2f241c;
}

body.pd-page .pd-sticky-bar .qty-input {
    width: 36px;
    height: 34px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0;
}

body.pd-page .pd-sticky-bar .btn-cart {
    grid-area: cart;
}

body.pd-page .pd-sticky-bar .btn-buy {
    grid-area: buy;
}

body.pd-page .pd-sticky-bar .action-btn {
    min-height: 44px;
    padding: 8px 10px !important;
    font-size: 0.88rem !important;
    border-radius: 12px !important;
    gap: 6px;
    transform: none !important;
}

body.pd-page .pd-sticky-bar .btn-cart {
    background: #fff;
    color: #e65100;
    border: 1.5px solid #f87600;
    box-shadow: none;
}

body.pd-page .pd-sticky-bar .btn-buy {
    background: linear-gradient(135deg, #f87600, #e65100);
    color: #fff;
    box-shadow: 0 8px 16px rgba(248, 118, 0, 0.28);
}

body.pd-page .action-buttons-spacer {
    display: block !important;
    height: 0;
}

body.pd-page .related-products {
    margin: 0 !important;
    padding: 16px 12px 8px !important;
    background: #fff;
    border: none !important;
    box-shadow: none !important;
}

@media (min-width: 1100px) {
    body.pd-page {
        background: #fff !important;
    }

    body.pd-page .container {
        background: #fff;
        max-width: none;
        box-shadow: none;
    }

    body.pd-page .desktop-top-nav {
        background: rgba(255, 255, 255, 0.2) !important;
        box-shadow: none !important;
        border-bottom: none !important;
        backdrop-filter: none;
    }

    body.pd-page .pd-header {
        display: none !important;
    }

    body.pd-page .main-content.pd-layout {
        width: min(1280px, calc(100% - 48px));
        margin: 24px auto 48px;
        padding: 0 !important;
        display: grid;
        grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
        gap: 20px 28px;
        align-items: start;
    }

    body.pd-page .product-image-section {
        grid-column: 1;
        grid-row: 1;
        background: #fff;
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: 520px;
        align-self: stretch;
    }

    body.pd-page .product-gallery-swiper,
    body.pd-page .product-image-container,
    body.pd-page #temp-unit-image {
        height: 100%;
        min-height: 460px;
        padding: 28px;
    }

    body.pd-page .product-image-section > .favorite-btn,
    body.pd-page .pd-promo-badge {
        top: 18px;
    }

    body.pd-page .product-image-section > .favorite-btn {
        right: 18px;
    }

    body.pd-page .pd-promo-badge {
        left: 18px;
    }

    body.pd-page .pd-stock-overlay {
        right: 18px;
        bottom: 18px;
    }

    body.pd-page .product-image-section:has(#thumb-strip) .pd-stock-overlay {
        bottom: 98px;
    }

    body.pd-page #thumb-strip {
        display: flex !important;
        justify-content: flex-start;
        padding: 0 18px 18px;
        gap: 10px;
        background: transparent;
    }

    body.pd-page .pd-info-col {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 8px 8px 16px;
        background: #fff;
    }

    body.pd-page .product-title {
        font-size: 1.55rem;
    }

    body.pd-page .price-display {
        font-size: 2.15rem;
    }

    body.pd-page .units-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow: visible;
    }

    body.pd-page .pd-sticky-bar {
        position: static !important;
        left: auto !important;
        transform: none !important;
        max-width: none !important;
        width: auto !important;
        margin: 8px 16px 4px;
        padding: 12px !important;
        border: 1px solid #f0ece8 !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        background: #fffaf5 !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "price qty"
            "cart buy";
    }

    body.pd-page .action-buttons-spacer {
        display: none !important;
    }

    body.pd-page .related-products {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0 !important;
        padding: 16px 0 !important;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    body.pd-page .pd-sticky-bar .action-btn {
        min-width: 0;
        width: 100%;
        font-size: 0.95rem !important;
    }
}

/* =====================================================
   Mobile-only: minimal overlay layout
   ===================================================== */
@media (max-width: 1099px) {
    body.pd-page .container {
        max-width: 480px;
        background: #fff;
        box-shadow: none;
    }

    body.pd-page .app-header.pd-header {
        height: 52px !important;
        max-width: 480px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        box-shadow: none !important;
        border: none !important;
    }

    body.pd-page .main-content,
    body.pd-page .main-content.pd-layout {
        padding-top: 0 !important;
        padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.pd-page .product-image-section {
        background: #fafafa;
        overflow: hidden;
        border-radius: 0 !important;
    }

    body.pd-page .product-gallery-swiper,
    body.pd-page .product-image-container,
    body.pd-page #temp-unit-image {
        height: min(78vw, 360px) !important;
        min-height: 260px !important;
        padding: 52px 18px 36px !important;
    }

    body.pd-page .product-image-section .product-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
        object-position: center 60%;
    }

    body.pd-page .product-image-section > .favorite-btn {
        top: 58px;
        right: 10px;
        width: 38px;
        height: 38px;
        background: rgba(0, 0, 0, 0.28);
        color: #fff;
    }

    body.pd-page .product-image-section > .favorite-btn i {
        color: #fff;
    }

    body.pd-page .product-image-section > .favorite-btn.active i,
    body.pd-page .product-image-section > .favorite-btn i.favorited {
        color: #ff5a5f;
    }

    body.pd-page .pd-promo-badge {
        top: 58px;
        left: 10px;
        box-shadow: none;
        font-weight: 700;
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    body.pd-page .pd-stock-overlay {
        right: 12px;
        bottom: 12px;
    }

    body.pd-page .pd-stock-overlay .stock-info {
        background: rgba(0, 0, 0, 0.42);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 5px 10px;
    }

    body.pd-page .pd-stock-overlay .stock-info i {
        color: #fff;
    }

    body.pd-page .pd-stock-overlay .stock-info.is-out-of-stock {
        color: #fff;
        background: rgba(220, 53, 69, 0.72);
    }

    body.pd-page .pd-stock-overlay .stock-info.is-stock-ready {
        color: #fff;
        background: rgba(4, 120, 87, 0.72);
    }

    body.pd-page .pd-info-col {
        padding: 6px 0 8px;
    }

    body.pd-page .product-info.pd-sheet {
        padding: 18px 20px 2px !important;
    }

    body.pd-page .product-title {
        font-size: 1.18rem;
        font-weight: 700;
        margin: 0 0 6px;
        color: #1a1a1a;
        letter-spacing: -0.02em;
    }

    body.pd-page .product-pricing-block {
        margin: 0 0 16px !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        gap: 2px;
    }

    body.pd-page .price-display {
        font-size: 2.2rem !important;
    }

    body.pd-page .price-type-label {
        display: none !important;
    }

    body.pd-page .product-meta {
        margin: 0 0 8px;
        gap: 8px;
    }

    body.pd-page .category-tag,
    body.pd-page .brand-tag,
    body.pd-page .subcategory-tag {
        background: transparent;
        border: none;
        color: #b0a89f;
        padding: 0;
        font-size: 0.72rem;
        font-weight: 500;
    }

    body.pd-page .units-section,
    body.pd-page .promoja-section {
        padding: 2px 20px 14px !important;
    }

    body.pd-page .units-section .section-title,
    body.pd-page .promoja-section .section-title {
        font-size: 0.78rem;
        font-weight: 600;
        color: #8a8178;
        margin-bottom: 10px;
        gap: 6px;
        letter-spacing: 0.02em;
    }

    body.pd-page .units-section .section-title i {
        display: none;
    }

    body.pd-page .units-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    body.pd-page .unit-card {
        min-width: 96px;
        padding: 10px 14px !important;
        border-radius: 14px;
        border: 1px solid transparent;
        background: #f6f6f5;
        box-shadow: none;
        align-items: flex-start;
    }

    body.pd-page .unit-card.active {
        background: #fff7ef;
        border-color: #f87600;
        box-shadow: none;
    }

    body.pd-page .unit-card.active .unit-name {
        color: #e65100;
    }

    body.pd-page .unit-card.active .unit-details {
        color: #d97706;
    }

    body.pd-page .unit-name {
        font-size: 0.9rem;
        font-weight: 700;
        color: #333;
        margin: 0;
    }

    body.pd-page .unit-details {
        font-size: 0.68rem;
        color: #aaa;
        margin: 2px 0 0;
    }

    body.pd-page .unit-price {
        font-size: 0.84rem;
        font-weight: 700;
        color: #f87600;
        margin-top: 6px;
    }

    body.pd-page .pd-details {
        margin: 4px 20px 12px;
        background: #fff;
        border: none;
        border-top: 1px solid #f3f1ee;
        border-radius: 0;
    }

    body.pd-page .pd-details > summary.details-title {
        padding: 12px 0;
        font-size: 0.88rem;
        font-weight: 600;
        color: #555;
    }

    body.pd-page .pd-sticky-bar {
        gap: 10px 12px;
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff !important;
        border-top: 1px solid #f0eeeb !important;
        box-shadow: none !important;
        backdrop-filter: none;
    }

    body.pd-page .pd-sticky-price {
        font-size: 1.05rem;
        font-weight: 700;
    }

    body.pd-page .pd-sticky-bar .quantity-control {
        background: #f7f7f6;
        border: none;
    }

    body.pd-page .pd-sticky-bar .action-btn {
        min-height: 42px;
        border-radius: 10px !important;
        font-size: 0.84rem !important;
        font-weight: 600;
        box-shadow: none !important;
    }

    body.pd-page .pd-sticky-bar .btn-cart {
        background: #fff;
        color: #f87600;
        border: 1px solid #f87600;
    }

    body.pd-page .pd-sticky-bar .btn-buy {
        background: #f87600;
        color: #fff;
        box-shadow: none !important;
    }

    body.pd-page .related-products {
        padding: 8px 16px 12px !important;
    }

    body.pd-page .related-products .section-title {
        font-size: 0.92rem;
        font-weight: 600;
    }
}

body.pd-page .pos-price-ladder {
    margin: 8px 16px 4px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

body.pd-page .pos-price-ladder .section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #1e293b;
}

body.pd-page .pos-ladder-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

body.pd-page .pos-ladder-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
}

body.pd-page .pos-ladder-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

body.pd-page .pos-ladder-row:last-child {
    border-bottom: none;
}

body.pd-page .pos-ladder-row.is-retail {
    background: #f0fdf4;
}

body.pd-page .pos-ladder-level {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #2563eb;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.pd-page .pos-ladder-row.is-retail .pos-ladder-level {
    background: #dcfce7;
    color: #16a34a;
}

body.pd-page .pos-ladder-info {
    flex: 1;
    min-width: 0;
}

body.pd-page .pos-ladder-label {
    font-weight: 700;
    font-size: 0.78rem;
    color: #1e293b;
}

body.pd-page .pos-ladder-qty {
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
}

body.pd-page .pos-ladder-price {
    flex-shrink: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #16a34a;
}

body.pd-page .pos-ladder-note {
    margin: 8px 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.4;
}

@media (max-width: 1099px) {
    body.pd-page .pos-price-ladder {
        margin: 4px 16px 8px;
        padding: 10px 12px;
    }
}

/* ===== Product price + unit picker layout ===== */
body.pd-page .product-pricing-block {
    display: block;
    margin: 2px 0 16px;
}

body.pd-page .price-display {
    flex: none;
    min-width: 0;
    font-size: 2.35rem !important;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

body.pd-page .price-type-label {
    display: none !important;
}

body.pd-page .units-section {
    padding-top: 4px !important;
}

body.pd-page .units-section .section-title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #8a8178 !important;
    margin: 0 0 10px !important;
}

body.pd-page .units-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
    flex-wrap: unset;
}

body.pd-page .unit-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start;
    gap: 2px;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    border: 1.5px solid #eceae6 !important;
    background: #f7f6f4 !important;
    box-shadow: none !important;
    text-align: left;
}

body.pd-page .unit-card-text {
    min-width: 0;
    width: 100%;
    flex: none;
}

body.pd-page .unit-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #2a241f !important;
    margin: 0 !important;
    line-height: 1.2;
}

body.pd-page .unit-details {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #9a938c !important;
    margin: 3px 0 0 !important;
}

body.pd-page .unit-price {
    flex: none;
    width: 100%;
    margin: 8px 0 0 !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    color: #f87600 !important;
    text-align: left;
    justify-content: flex-start;
}

body.pd-page .unit-price-retail,
body.pd-page .unit-price-now,
body.pd-page .unit-card.active .unit-price,
body.pd-page .unit-card.active .unit-price-retail {
    color: #f87600 !important;
}

body.pd-page .unit-card.active {
    background: #fff7ef !important;
    border-color: #f87600 !important;
    box-shadow: 0 0 0 3px rgba(248, 118, 0, 0.12) !important;
}

body.pd-page .unit-card.active .unit-name {
    color: #e65100 !important;
}

body.pd-page .unit-card.active .unit-details {
    color: #c2410c !important;
}

body.pd-page .unit-card:hover {
    border-color: rgba(248, 118, 0, 0.45) !important;
    transform: none;
}

@media (min-width: 1100px) {
    body.pd-page .price-display {
        font-size: 2.5rem !important;
    }

    body.pd-page .units-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ===== Related products â€” same look/behavior as à¸‹à¸·à¹‰à¸­à¸¥à¹ˆà¸²à¸ªà¸¸à¸” on main.php ===== */
body.pd-page .related-products {
    margin: 8px 0 0 !important;
    padding: 8px 12px 20px !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

body.pd-page .related-products .section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 0 10px !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #f0eeeb !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    overflow: visible;
}

body.pd-page .related-products .section-header::before,
body.pd-page .related-products .section-header::after {
    display: none !important;
}

body.pd-page .related-products .header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: #fff;
}

body.pd-page .related-products .header-icon.orange {
    background: linear-gradient(135deg, #f87600, #ff9a44);
    box-shadow: 0 4px 14px rgba(248, 118, 0, 0.3);
}

body.pd-page .related-products .section-title {
    flex: 1 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    display: block !important;
}

body.pd-page .related-products .section-link {
    background: linear-gradient(135deg, rgba(248, 118, 0, 0.08), rgba(248, 118, 0, 0.04)) !important;
    border: 1px solid rgba(248, 118, 0, 0.15) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    color: #f87600 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

body.pd-page .related-products .section-link::after {
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 0.62rem !important;
    line-height: 1;
}

body.pd-page .related-products .section-link:hover {
    background: linear-gradient(135deg, #f87600, #ff9500) !important;
    color: #fff !important;
    border-color: #f87600 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(248, 118, 0, 0.3) !important;
}

body.pd-page .related-products .products-slider-container {
    padding: 6px 0 10px !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

body.pd-page .related-products .related-swiper {
    overflow: hidden !important;
    padding: 14px 2px 18px !important;
}

body.pd-page .related-products .swiper-slide {
    height: auto !important;
}

body.pd-page .related-products .slider-product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    background: #fff !important;
    overflow: hidden;
    cursor: pointer;
}

body.pd-page .related-products .product-image-wrapper {
    aspect-ratio: 1 / 1 !important;
    max-height: 130px !important;
    height: auto !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

body.pd-page .related-products .product-image-wrapper img.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px !important;
    background: #fff !important;
}

body.pd-page .related-products .product-info {
    padding: 8px 10px 10px !important;
}

body.pd-page .related-products .product-meta,
body.pd-page .related-products .category-brand-info,
body.pd-page .related-products .discount-badge {
    display: revert !important;
}

body.pd-page .related-products .product-meta {
    min-height: 18px;
    margin: 0;
}

body.pd-page .related-products .product-name {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin: 4px 0 !important;
    min-height: 0;
}

body.pd-page .related-products .product-footer {
    margin-top: auto !important;
    padding-top: 2px !important;
    border-top: none !important;
    display: block !important;
}

body.pd-page .related-products .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

body.pd-page .related-products .current-price,
body.pd-page .related-products .product-price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #e65100 !important;
}

body.pd-page .related-products .original-price {
    font-size: 0.68rem !important;
    color: #9a9a9a !important;
}

body.pd-page .related-products .select-btn-slider,
body.pd-page .related-products .view-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f87600, #e65100) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(248, 118, 0, 0.25) !important;
}

body.pd-page .related-products .select-btn-slider i,
body.pd-page .related-products .view-icon i {
    font-size: 0.72rem !important;
    color: #fff !important;
}

body.pd-page .related-products .favorite-btn {
    width: 34px !important;
    height: 34px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #9aa0a6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14) !important;
}

body.pd-page .related-products .favorite-btn.is-favorite,
body.pd-page .related-products .favorite-btn .favorited {
    color: #ff3b3b !important;
}

@media (max-width: 767px) {
    body.pd-page .related-products {
        padding: 4px 8px 14px !important;
        overflow: hidden !important;
    }

    body.pd-page .related-products .section-header {
        padding: 10px 12px !important;
        gap: 8px !important;
        border-radius: 14px !important;
        margin-bottom: 4px !important;
    }

    body.pd-page .related-products .header-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    body.pd-page .related-products .section-title {
        font-size: 0.9rem !important;
    }

    body.pd-page .related-products .section-link {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
        flex-shrink: 0;
    }

    body.pd-page .related-products .products-slider-container {
        overflow: hidden !important;
        padding: 2px 0 4px !important;
        min-height: 0 !important;
    }

    body.pd-page .related-products .related-swiper {
        overflow: hidden !important;
        padding: 4px 0 6px !important;
    }

    body.pd-page .related-products .swiper-slide {
        height: auto !important;
        display: flex !important;
        align-items: stretch;
        box-sizing: border-box;
    }

    body.pd-page .related-products .slider-product-card,
    body.pd-page .related-products .slider-product-card:hover,
    body.pd-page .related-products .slider-product-card:active {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 12px !important;
        transform: none !important;
        opacity: 1 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    body.pd-page .related-products .product-image-wrapper {
        height: auto !important;
        max-height: 128px !important;
        aspect-ratio: 1 / 1 !important;
    }

    body.pd-page .related-products .product-image-wrapper img.product-image {
        padding: 6px !important;
    }

    body.pd-page .related-products .product-info {
        padding: 8px 8px 10px !important;
        flex: none !important;
        height: auto !important;
    }

    body.pd-page .related-products .product-meta {
        display: none !important;
        min-height: 0 !important;
    }

    body.pd-page .related-products .product-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-grow: 0 !important;
        min-height: 2.4em !important;
        height: auto !important;
        margin: 0 0 6px !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    body.pd-page .related-products .product-footer {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.pd-page .related-products .current-price,
    body.pd-page .related-products .product-price {
        font-size: 0.88rem !important;
    }

    body.pd-page .related-products .select-btn-slider,
    body.pd-page .related-products .view-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
    }

    body.pd-page .related-products .select-btn-slider i,
    body.pd-page .related-products .view-icon i {
        font-size: 0.6rem !important;
    }

    body.pd-page .related-products .favorite-btn {
        width: 28px !important;
        height: 28px !important;
    }

    body.pd-page .related-products .category-brand-info,
    body.pd-page .related-products .view-icon {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    body.pd-page .related-products .related-swiper .swiper-slide .slider-product-card {
        width: 100% !important;
        min-width: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    }
}

@media (min-width: 1100px) {
    body.pd-page .related-products {
        padding: 8px 0 24px !important;
    }

    body.pd-page .related-products .slider-product-card {
        min-height: 280px !important;
    }

    body.pd-page .related-products .product-image-wrapper {
        max-height: none !important;
    }

    body.pd-page .related-products .related-swiper .swiper-slide .slider-product-card {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: 0 4px 14px rgba(248, 118, 0, 0.12) !important;
        border: 1px solid rgba(248, 118, 0, 0.18) !important;
    }
}

