/* css/mobile/product-page.css */

.prod-page-section {
    padding: 20px 0 48px;
    background: #f2ede4;
    overflow: visible;
}

.prod-page-container {
    width: 100%;
    padding: 0 16px;
    overflow: visible;
}

/* ── Hide PC tabs on mobile ── */
.prod-tabs { display: none !important; }

/* ── Panel show/hide — must restate since PC CSS leaks ── */
.prod-tab-panel { display: none !important; }
.prod-tab-panel.active {
    display: block !important;
    animation: panelIn 0.32s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile category custom dropdown ── */
.prod-mobile-select-wrap {
    position: relative;
    width: 200px;
    margin: 0 auto 22px;
    z-index: 500;
}

/* Trigger button */
.prod-mobile-selected {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #ffffff;
    border: 1.5px solid #e8e0d4;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: border-color 0.22s ease;
}

.prod-mobile-select-wrap.open .prod-mobile-selected {
    border-color: #FF7A45;
    border-radius: 12px 12px 0 0;
}

.prod-selected-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #FF7A45 0%, #ff5f1f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.prod-selected-icon i {
    font-size: 0.8rem;
    color: #fff;
}

.prod-selected-label {
    flex: 1;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a0f1e;
}

.prod-select-caret {
    font-size: 0.85rem;
    color: #FF7A45;
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
    flex-shrink: 0;
}
.prod-mobile-select-wrap.open .prod-select-caret {
    transform: rotate(180deg);
}

/* Dropdown panel */
.prod-mobile-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #ffffff;
    border: 1.5px solid #FF7A45;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.prod-mobile-select-wrap.open .prod-mobile-dropdown {
    max-height: 260px;
    opacity: 1;
}

/* Dropdown items */
.prod-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.15s ease;
}
.prod-dropdown-item:last-child { border-bottom: none; }

.prod-dropdown-item:active { background: #fff7f4; }

.prod-dropdown-item.active {
    background: #fff3ee;
    color: #FF7A45;
    font-weight: 800;
}
.prod-dropdown-item.active .prod-dropdown-icon {
    background: linear-gradient(135deg, #FF7A45, #ff5f1f);
}
.prod-dropdown-item.active .prod-dropdown-icon i { color: #fff; }

.prod-dropdown-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #f2ede4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.prod-dropdown-icon i {
    font-size: 0.8rem;
    color: #888;
}

/* ── Quality bar — scrolling marquee ── */
.prod-quality-bar {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8e2d8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.prod-quality-track {
    display: flex;
    width: max-content;
    animation: qualityScroll 14s linear infinite;
}

@keyframes qualityScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.prod-quality-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    flex-shrink: 0;
    border-right: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
}

.prod-quality-item i {
    font-size: 1.4rem !important;
    color: #FF7A45;
    flex-shrink: 0;
}

.prod-quality-item div {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.prod-quality-item strong {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    color: #0a0f1e !important;
}

.prod-quality-item span {
    font-size: 0.62rem !important;
    color: #6b7280 !important;
}

/* ── Hide mobile selector on PC ── */
@media (min-width: 1025px) {
    .prod-mobile-select-wrap { display: none !important; }
}

/* ── 2-column product grid ── */
.prod-page-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    perspective: none !important;
}

/* ── Card ── */
.prod-page-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.07),
        0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.18s ease;
}
.prod-page-card:active { transform: scale(0.97); }

/* color top bar */
.prod-page-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--theme-color);
    border-radius: 16px 16px 0 0;
    z-index: 3;
}
.prod-page-card::after { display: none; }

/* ── Image zone ── */
.prod-page-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f5f2ec 0%, #ece8df 100%);
    margin: 18px auto 10px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.prod-page-img-wrap::before { display: none; }

.prod-page-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.16));
    transition: transform 0.3s ease;
}

/* ── Badge ── */
.prod-card-badge {
    top: 9px; left: 9px;
    font-size: 0.52rem;
    padding: 3px 8px;
}

/* ── Card body ── */
.prod-page-card-body {
    padding: 4px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
}

.prod-page-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 4px;
    line-height: 1.25;
}

.prod-page-card-desc {
    font-size: 0.66rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

/* ── Feature icons ── */
.prod-page-features {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px;
    margin-bottom: 10px;
    padding-top: 8px;
    border-top: 1px solid #ede9e0;
    width: 100%;
}

.prod-page-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 3px 2px;
}
.prod-page-feature-item i { font-size: 0.85rem; color: var(--theme-color); }
.prod-page-feature-item span {
    font-size: 0.5rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

/* ── CTA button ── */
.prod-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--theme-color) 85%, #000) 0%,
        var(--theme-color) 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 8px;
    border-radius: 10px;
    margin-top: auto;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-color) 35%, transparent);
    position: relative;
    overflow: hidden;
}

/* ── Category header ── */
.prod-cat-header {
    text-align: center;
    margin-bottom: 20px;
}

.prod-cat-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 6vw, 1.7rem);
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 8px;
    line-height: 1.2;
}

.prod-cat-sub {
    font-size: 0.82rem;
    color: #5a6478;
    line-height: 1.6;
    margin-bottom: 12px;
}

.prod-cat-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.prod-cat-line span:first-child {
    display: block; width: 28px; height: 3px;
    background: #FF7A45; border-radius: 4px;
}
.prod-cat-line span:last-child {
    display: block; width: 9px; height: 3px;
    background: #ffc5a8; border-radius: 4px;
}
