/**
 * Fokawood Minimal Luxury B2B Product Detail Stylesheet
 * Refined, Spacious, Production-Ready Design System
 * "Less is More" — Product -> Information -> Specifications -> Inquiry
 */

/* ==========================================================================
   1. Master Page Bounds & Container
   ========================================================================== */
.foka-product-detail-page {
    width: 100%;
    max-width: 1180px;
    margin: 20px auto 60px;
    padding: 0 24px;
    box-sizing: border-box;
    direction: rtl;
    font-family: var(--foka-font, 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif);
    color: #0f172a;
}

/* ==========================================================================
   2. Minimal Breadcrumb
   ========================================================================== */
.foka-pdetail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.foka-pdetail-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.foka-pdetail-breadcrumb a:hover {
    color: #ea580c;
}

.foka-pdetail-breadcrumb .foka-pbc-sep {
    color: #cbd5e1;
    font-size: 11px;
}

.foka-pdetail-breadcrumb .foka-pbc-current {
    color: #334155;
    font-weight: 600;
}

/* ==========================================================================
   3. Product Hero Section (Gallery + Information)
   ========================================================================== */
.foka-pdetail-hero {
    display: grid;
    grid-template-columns: minmax(380px, 480px) 1fr;
    gap: 48px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
}

/* ==========================================================================
   4. Minimal Product Gallery
   ========================================================================== */
.foka-pdetail-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.foka-pgallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color 0.2s ease;
}

.foka-pgallery-viewport:hover {
    border-color: #cbd5e1;
}

.foka-pgallery-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
}

.foka-pgallery-viewport:hover .foka-pgallery-img {
    transform: scale(1.03);
}

/* Minimal Thumbnails (Only when multiple images exist) */
.foka-pgallery-thumbs-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.foka-pthumb-btn {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    padding: 3px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.foka-pthumb-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.foka-pthumb-btn:hover {
    border-color: #ea580c;
}

.foka-pthumb-btn.active {
    border-color: #ff7a00;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

/* ==========================================================================
   5. Product Information Column
   ========================================================================== */
.foka-pdetail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

/* Top Meta (Category + Stock) */
.foka-pinfo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.foka-pinfo-cat-tag {
    font-size: 12px;
    font-weight: 700;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 3px 10px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.foka-pinfo-cat-tag:hover {
    background: #ffedd5;
}

.foka-pinfo-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}

.foka-pinfo-stock-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

/* Title & SKU */
.foka-pinfo-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.foka-pinfo-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.45;
    margin: 0;
    letter-spacing: 0;
}

.foka-pinfo-sku {
    font-size: 12px;
    color: #94a3b8;
    direction: ltr;
    text-align: right;
}

/* Short Description */
.foka-pinfo-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   6. Key Specifications (Minimalist Grid)
   ========================================================================== */
.foka-pspecs-section {
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.foka-pspecs-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #334155;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.foka-pspecs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.foka-pspec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
}

.foka-pspec-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.foka-pspec-value {
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.foka-pspec-value [dir="ltr"] {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
}

/* Variants (if applicable) */
.foka-pvariants-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foka-pvariants-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.foka-pvariants-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.foka-pvar-pill {
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.foka-pvar-pill:hover,
.foka-pvar-pill.active {
    border-color: #ea580c;
    background: #fff7ed;
    color: #ea580c;
}

/* ==========================================================================
   7. Pricing & Inquiry CTA Area
   ========================================================================== */
.foka-pinquiry-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 4px;
}

/* Price Row (if available) */
.foka-pprice-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.foka-pprice-current {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ea580c;
    line-height: 1;
}

.foka-pprice-old {
    font-size: 1.05rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.foka-pprice-unit {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* Inquiry Notice */
.foka-pinquiry-notice {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* CTA Buttons Row */
.foka-pcta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.foka-btn-primary-inquiry {
    flex: 1.2;
    min-width: 220px;
    height: 48px;
    background: #ea580c;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.foka-btn-primary-inquiry:hover {
    background: #c2410c;
    transform: translateY(-1px);
}

.foka-btn-hotline-simple {
    flex: 1;
    min-width: 200px;
    height: 48px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.foka-btn-hotline-simple:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.foka-btn-wa-inquiry svg {
    color: #22c55e;
}

.foka-btn-hotline-simple strong {
    direction: ltr;
    color: #fed7aa;
    font-weight: 900;
}

/* Subtle Cart Order Row (Sample / Sheet Order) */
.foka-psample-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.foka-pqty-select {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 40px;
    overflow: hidden;
    background: #f8fafc;
}

.foka-pqty-btn {
    width: 32px;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.foka-pqty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.foka-pqty-input {
    width: 44px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}

.foka-pqty-input::-webkit-outer-spin-button,
.foka-pqty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.foka-btn-sample-cart {
    height: 40px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.foka-btn-sample-cart:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: #fff7ed;
}

/* ==========================================================================
   8. Fullscreen Lightbox Modal
   ========================================================================== */
.foka-lightbox-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.foka-lightbox-backdrop.active {
    display: flex;
}

.foka-lightbox-backdrop img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.foka-lightbox-close {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
}

.foka-lightbox-close:hover {
    background: #ea580c;
    color: #ffffff;
}

/* ==========================================================================
   9. Responsive Refinements (Mobile First-Class)
   ========================================================================== */

/* Laptop & Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .foka-pdetail-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 20px;
    }
    .foka-pgallery-viewport {
        max-height: 360px;
    }
}

/* Mobile Screens (< 768px) */
@media (max-width: 767px) {
    .foka-product-detail-page {
        margin: 10px auto 32px;
        padding: 0 12px;
    }
    .foka-pdetail-breadcrumb {
        margin-bottom: 12px;
        font-size: 11px;
    }
    .foka-pdetail-hero {
        border-radius: 16px;
        padding: 14px 14px 18px 14px;
        gap: 16px;
    }
    .foka-pdetail-gallery {
        gap: 10px;
    }
    .foka-pgallery-viewport {
        aspect-ratio: 4 / 3;
        max-height: 260px;
        border-radius: 14px;
    }
    .foka-pdetail-info {
        gap: 12px;
    }
    .foka-pinfo-meta {
        gap: 8px;
    }
    .foka-pinfo-cat-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    .foka-pinfo-stock-status {
        font-size: 11px;
    }
    .foka-pinfo-header {
        gap: 4px;
    }
    .foka-pinfo-title {
        font-size: 1.22rem;
        line-height: 1.35;
    }
    .foka-pinfo-sku {
        font-size: 11px;
    }
    /* Hide generic repetitive description on mobile to bring specs & CTAs into view immediately */
    .foka-pinfo-desc {
        display: none;
    }
    .foka-pspecs-section {
        padding: 10px 0;
    }
    .foka-pspecs-title {
        font-size: 11.5px;
        margin-bottom: 8px;
    }
    .foka-pspecs-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .foka-pspec-row {
        font-size: 11.5px;
        padding-bottom: 5px;
    }
    .foka-pspec-label {
        font-size: 11px;
    }
    .foka-pspec-value {
        font-size: 11.5px;
    }
    .foka-pinquiry-area {
        gap: 10px;
        padding-top: 2px;
    }
    .foka-pprice-current {
        font-size: 1.45rem;
    }
    .foka-pprice-old {
        font-size: 0.95rem;
    }
    .foka-pprice-unit {
        font-size: 11px;
    }
    .foka-pinquiry-notice {
        font-size: 11px;
        line-height: 1.5;
    }
    .foka-pcta-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    .foka-btn-primary-inquiry {
        flex: 1.1;
        width: auto;
        min-width: 0;
        height: 42px;
        font-size: 12px;
        padding: 0 8px;
        border-radius: 10px;
        gap: 6px;
    }
    .foka-btn-primary-inquiry svg {
        width: 15px;
        height: 15px;
    }
    .foka-btn-hotline-simple {
        flex: 1;
        width: auto;
        min-width: 0;
        height: 42px;
        font-size: 11.5px;
        padding: 0 8px;
        border-radius: 10px;
        gap: 6px;
    }
    .foka-btn-hotline-simple svg {
        width: 15px;
        height: 15px;
    }
    .foka-psample-cart-row {
        justify-content: space-between;
        gap: 8px;
    }
    .foka-btn-sample-cart {
        flex: 1;
        height: 40px;
        font-size: 12px;
        justify-content: center;
    }
}

/* Small Mobile (<= 380px) */
@media (max-width: 380px) {
    .foka-product-detail-page {
        padding: 0 8px;
    }
    .foka-pdetail-hero {
        padding: 12px 10px 14px 10px;
        gap: 12px;
    }
    .foka-pinfo-title {
        font-size: 1.12rem;
    }
    .foka-pcta-group {
        flex-direction: column;
        gap: 6px;
    }
    .foka-btn-primary-inquiry,
    .foka-btn-hotline-simple {
        width: 100%;
        height: 40px;
    }
}

/* ==========================================================================
   10. Why Choose Fokawood (Clean Minimal Pillars)
   ========================================================================== */
.foka-why-choose-minimal {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.foka-why-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px 0;
}

.foka-why-grid-minimal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.foka-why-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.foka-why-item:hover {
    border-color: #fed7aa;
    background-color: #fffcf8;
}

.foka-why-item h3 {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.foka-why-item h3 svg {
    color: #ea580c;
    flex-shrink: 0;
}

.foka-why-item p {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .foka-why-choose-minimal {
        margin-top: 28px;
        padding-top: 20px;
    }
    .foka-why-grid-minimal {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .foka-why-choose-minimal {
        margin-top: 20px;
        padding-top: 16px;
    }
    .foka-why-title {
        font-size: 1.05rem;
        margin-bottom: 12px;
        text-align: right;
    }
    .foka-why-grid-minimal {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .foka-why-item {
        padding: 10px 10px;
        border-radius: 12px;
        gap: 4px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    .foka-why-item h3 {
        font-size: 11px;
        font-weight: 900;
        gap: 5px;
        line-height: 1.3;
    }
    .foka-why-item h3 svg {
        width: 14px;
        height: 14px;
    }
    .foka-why-item p {
        font-size: 9.5px;
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
    .foka-why-grid-minimal {
        gap: 6px;
    }
    .foka-why-item {
        padding: 8px 8px;
    }
    .foka-why-item h3 {
        font-size: 10.5px;
    }
    .foka-why-item p {
        font-size: 9px;
    }
}

