/* =============================================
   JRT Fencing — Individual Product Page Styles
   ============================================= */

/* ── Breadcrumb ───────────────────────────────── */
.prod-breadcrumb-bar {
    background: #f4f6f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}

.prod-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #888;
    flex-wrap: wrap;
}

.prod-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.prod-breadcrumb a:hover { color: #d4af37; }

.prod-breadcrumb .sep { color: #ccc; font-size: 0.75rem; }

.prod-breadcrumb .current {
    color: #001f3d;
    font-weight: 600;
}

/* ── Main Product Layout ──────────────────────── */
.prod-main {
    background: #fff;
    padding: 52px 0 64px;
}

.prod-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Image Gallery ────────────────────────────── */
.prod-gallery {
    position: sticky;
    top: 100px;
}

.prod-gallery-main {
    background: #f4f6f9;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8edf3;
    margin-bottom: 14px;
    cursor: zoom-in;
    position: relative;
}

.prod-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 32px;
    transition: transform 0.4s ease;
}

.prod-gallery-main:hover img {
    transform: scale(1.05);
}

.prod-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prod-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    background: #f4f6f9;
    transition: border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.prod-thumb:hover {
    border-color: #001f3d;
    transform: translateY(-2px);
}

.prod-thumb.active {
    border-color: #d4af37;
    box-shadow: 0 0 0 1px #d4af37;
}

/* ── Product Info Panel ───────────────────────── */
.prod-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge */
.prod-badge {
    display: inline-flex;
    align-items: center;
    background: #d4af37;
    color: #001f3d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
}

/* Title */
.prod-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #001f3d;
    line-height: 1.15;
    margin-bottom: 8px;
}

/* SKU */
.prod-sku {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Gold divider */
.prod-divider {
    height: 3px;
    background: linear-gradient(to right, #d4af37, transparent);
    border-radius: 2px;
    margin-bottom: 18px;
}

/* Trust row */
.prod-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8edf3;
}

.prod-trust-row span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
}

.prod-trust-row i {
    color: #d4af37;
    font-size: 0.85rem;
}

/* Tagline */
.prod-tagline {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Spec pills */
.prod-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.prod-spec-pill {
    background: #eef2f7;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.prod-spec-pill i {
    color: #d4af37;
    font-size: 0.72rem;
}

/* Variant selector */
.prod-variant-section {
    margin-bottom: 22px;
}

.prod-variant-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prod-variant-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #001f3d;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23001f3d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.prod-variant-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

/* Price block */
.prod-price-block {
    background: linear-gradient(135deg, #001f3d 0%, #002a52 100%);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
}

.prod-price-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.prod-price-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.prod-price-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

/* Quantity row */
.prod-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.prod-qty-row label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #001f3d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.prod-qty-ctrl {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: #f4f6f9;
    border: none;
    font-size: 1.3rem;
    font-weight: 400;
    color: #001f3d;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover { background: #e2e8f0; }

#prodQty {
    width: 52px;
    height: 44px;
    border: none;
    border-left: 2px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #001f3d;
    background: #fff;
}

#prodQty:focus { outline: none; }

/* Action buttons */
.prod-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.prod-add-cart {
    flex: 1;
    background: #001f3d;
    color: #fff;
    border: none;
    padding: 15px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,31,61,0.18);
}

.prod-add-cart:hover {
    background: #d4af37;
    color: #001f3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

.prod-get-quote {
    background: transparent;
    color: #001f3d;
    border: 2px solid #001f3d;
    padding: 15px 22px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.prod-get-quote:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* Delivery strips */
.prod-delivery-strips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prod-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: #555;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #d4af37;
}

.prod-strip i {
    color: #d4af37;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.prod-strip a {
    color: #001f3d;
    font-weight: 600;
    text-decoration: none;
}

.prod-strip a:hover { color: #d4af37; }

/* ── Tabs Section ─────────────────────────────── */
.prod-tabs-section {
    background: #f4f6f9;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

.prod-tabs-header {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.prod-tab {
    background: none;
    border: none;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.prod-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4af37;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.prod-tab.active {
    color: #001f3d;
}

.prod-tab.active::after {
    transform: scaleX(1);
}

.prod-tab:hover { color: #001f3d; }

.prod-tab-pane {
    display: none;
}

.prod-tab-pane.active {
    display: block;
}

/* Description pane */
.prod-desc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.prod-desc-text {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.8;
}

.prod-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prod-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.55;
}

.prod-features-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: #d4af37;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23001f3d' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Specs table */
.prod-specs-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 680px;
}

.prod-specs-table tr:nth-child(odd) td {
    background: #fff;
}

.prod-specs-table tr:nth-child(even) td {
    background: #f8fafc;
}

.prod-specs-table td {
    padding: 13px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e8edf3;
}

.prod-specs-table td:first-child {
    font-weight: 700;
    color: #001f3d;
    width: 40%;
}

.prod-specs-table td:last-child {
    color: #444;
}

/* Delivery pane */
.prod-delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prod-delivery-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.prod-delivery-card i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 14px;
    display: block;
}

.prod-delivery-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 8px;
}

.prod-delivery-card p {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.6;
}

/* ── Trust Strip ──────────────────────────────── */
.prod-trust-strip {
    background: #001f3d;
    padding: 32px 0;
    border-top: 3px solid #d4af37;
}

.prod-trust-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.prod-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.9);
}

.prod-trust-item i {
    font-size: 1.8rem;
    color: #d4af37;
    flex-shrink: 0;
}

.prod-trust-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.prod-trust-item span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

/* ── Related Products ─────────────────────────── */
.prod-related-section {
    background: #fff;
    padding: 72px 0;
}

.prod-related-header {
    text-align: center;
    margin-bottom: 48px;
}

.prod-related-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    padding-bottom: 16px;
}

.prod-related-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
}

.prod-related-header p {
    color: #666;
    font-size: 0.97rem;
    margin-top: 6px;
}

.prod-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.prod-related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #e8edf3;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.prod-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.prod-related-card-img {
    height: 180px;
    background: #f4f6f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.prod-related-card:hover .prod-related-card-img img {
    transform: scale(1.06);
}

.prod-related-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-related-card-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 6px;
    line-height: 1.35;
}

.prod-related-card-body .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 14px;
}

.prod-related-card-body .price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    margin-left: 4px;
}

.prod-related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #001f3d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    transition: color 0.2s, gap 0.2s;
}

.prod-related-card:hover .prod-related-card-link {
    color: #d4af37;
    gap: 10px;
}

/* ── CTA Section ──────────────────────────────── */
.prod-cta-section {
    background: linear-gradient(135deg, #001f3d 0%, #002d5a 100%);
    padding: 72px 0;
    text-align: center;
    border-top: 4px solid #d4af37;
}

.prod-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.prod-cta-section p {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    margin-bottom: 32px;
}

.prod-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.prod-cta-btns a {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prod-cta-btns .btn-gold {
    background: #d4af37;
    color: #001f3d;
    box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

.prod-cta-btns .btn-gold:hover {
    background: #c9a82e;
    transform: translateY(-2px);
}

.prod-cta-btns .btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.45);
}

.prod-cta-btns .btn-ghost:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .prod-layout {
        gap: 40px;
    }

    .prod-desc-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .prod-delivery-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .prod-trust-inner {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .prod-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .prod-gallery {
        position: static;
    }

    .prod-info h1 {
        font-size: 1.6rem;
    }

    .prod-price-value {
        font-size: 2rem;
    }

    .prod-actions {
        flex-direction: column;
    }

    .prod-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .prod-delivery-grid {
        grid-template-columns: 1fr;
    }

    .prod-trust-inner {
        gap: 20px;
    }

    .prod-trust-item {
        flex: 0 0 calc(50% - 10px);
    }

    .prod-desc-layout {
        grid-template-columns: 1fr;
    }

    .prod-tabs-header {
        gap: 0;
    }

    .prod-tab {
        padding: 12px 16px;
        font-size: 0.82rem;
    }

    .prod-cta-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .prod-main {
        padding: 32px 0 48px;
    }

    .prod-related-grid {
        grid-template-columns: 1fr;
    }

    .prod-trust-item {
        flex: 0 0 100%;
    }

    .prod-thumb {
        width: 60px;
        height: 60px;
    }

    .prod-trust-row {
        flex-direction: column;
        gap: 10px;
    }
}
