/* ============================================
   Product Detail Pages — Shared Styles
   Tohfeh & Mastaneh B2B
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 100px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--mint);
    font-weight: 700;
    transition: var(--ease);
}

.breadcrumb a:hover {
    color: var(--hot);
}

.breadcrumb span {
    margin: 0 6px;
    opacity: 0.5;
}

/* --- Product Hero --- */
.p-hero {
    padding-top: 20px;
    padding-bottom: 60px;
}

.p-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.p-hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(150deg, #1a1a1a, #333 50%, #555);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    display: grid;
    place-items: center;
}

.p-hero-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    transition: transform var(--ease);
}

.p-hero-image:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.p-hero-image::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    right: -50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 60%);
    pointer-events: none;
}

.p-hero-image .badge-float {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(212, 175, 55, 0.95);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 999px;
    font: 800 0.72rem/1 var(--font-en);
    letter-spacing: 0.1em;
    z-index: 2;
}

.p-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.1;
    color: #0f233f;
    margin-bottom: 1rem;
}

.p-hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--gold), #b8941f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.p-hero-copy .p-lead {
    color: #324157;
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 600px;
    margin-bottom: 1.2rem;
}

.p-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.p-hero-tags span {
    border-radius: 999px;
    border: 1px dashed rgba(16, 32, 58, 0.25);
    background: rgba(255, 255, 255, 0.66);
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* --- Variant Cards --- */
.variants-section {
    background: linear-gradient(180deg, var(--bg-alt), #fff);
}

.variant-grid {
    display: grid;
    gap: 18px;
    margin-top: 1.4rem;
}

.variant-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}

.variant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.variant-card.tohfeh {
    background: linear-gradient(145deg, #0f0f0f, #2a2a2a 45%, #444);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.variant-card.mastaneh {
    background: linear-gradient(145deg, #fff7ea, #fce6be 58%, #f5d093);
    color: #1f2d40;
    border: 1px solid rgba(16, 32, 58, 0.15);
}

.variant-card .v-tag {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 10px;
    font: 800 0.7rem/1 var(--font-en);
    letter-spacing: 0.12em;
}

.variant-card.tohfeh .v-tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
}

.variant-card.mastaneh .v-tag {
    background: rgba(16, 32, 58, 0.12);
    color: #4b5563;
}

.variant-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.variant-card.tohfeh h3 {
    color: var(--gold);
}

.variant-card > p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.variant-card .v-img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 12px;
}

/* SKU Table inside variant */
.sku-mini {
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    padding: 16px;
    margin-top: 12px;
}

.variant-card.mastaneh .sku-mini {
    background: rgba(255,255,255,0.5);
}

.sku-mini-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(16, 32, 58, 0.15);
    gap: 8px;
}

.sku-mini-row:last-child {
    border-bottom: none;
}

.sku-mini-row span {
    font-size: 0.88rem;
    opacity: 0.85;
}

.sku-mini-row strong {
    font-size: 0.9rem;
}

/* Weight badges */
.weight-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.weight-pill {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.variant-card.tohfeh .weight-pill {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
}

.variant-card.mastaneh .weight-pill {
    background: rgba(16, 32, 58, 0.08);
    border: 1px solid rgba(16, 32, 58, 0.15);
    color: #324157;
}

.variant-card .v-cta {
    display: inline-block;
    margin-top: 16px;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    transition: var(--ease);
}

.variant-card.tohfeh .v-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1a1a;
}

.variant-card.mastaneh .v-cta {
    background: #153257;
    color: #fff;
}

.v-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Rich Content Section --- */
.rich-content {
    background: #fff;
}

.rich-grid {
    display: grid;
    gap: 18px;
    margin-top: 1.4rem;
}

.rich-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    background: rgba(255,255,255,0.86);
    box-shadow: var(--shadow-sm);
}

.rich-block h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #122846;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rich-block h3 .icon {
    font-size: 1.6rem;
}

.rich-block p {
    color: #324157;
    line-height: 2;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.rich-block ul {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.rich-block li {
    position: relative;
    padding-right: 22px;
    color: #324157;
    font-size: 0.92rem;
    line-height: 1.8;
}

.rich-block li::before {
    content: '✦';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-size: 0.8rem;
}

/* --- Nutrition/Info Table --- */
.info-table-wrap {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    overflow-x: auto;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-top: 1.2rem;
}

.info-table-wrap table {
    min-width: auto;
}

.info-table-wrap th {
    background: #112540;
    font-size: 0.88rem;
}

.info-table-wrap td {
    font-size: 0.88rem;
}

/* --- Product FAQ --- */
.product-faq {
    background: linear-gradient(180deg, var(--bg-alt), #fff);
}

.product-faq .faq-list {
    margin-top: 1.4rem;
}

/* --- Product Gallery --- */
.gallery-section {
    background: linear-gradient(180deg, #fff, var(--bg-alt));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1.4rem;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 1;
    background: linear-gradient(135deg, #fef8ea, #fff7eb);
    display: grid;
    place-items: center;
    transition: var(--ease);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* --- Related Products --- */
.related-section {
    background: linear-gradient(180deg, var(--bg-alt), #fff);
    border-top: 1px solid var(--line);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1.4rem;
}

.related-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 16px;
    text-align: center;
    transition: var(--ease);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(212, 175, 55, 0.4);
}

.related-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.related-card h4 {
    font-size: 0.92rem;
    color: #122846;
    margin-bottom: 4px;
}

.related-card p {
    font-size: 0.78rem;
    color: var(--muted);
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .p-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .variant-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rich-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 960px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}