/* Product detail — shop-style hero layout */

.product-show-page {
    background: #f4f7fb;
    padding: 2.5rem 0 3.5rem;
}

.product-show-page .container {
    width: 90%;
    max-width: none;
}

.product-show-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.product-show-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 4px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.product-show-gallery {
    min-width: 0;
}

.product-show-gallery-main {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.product-show-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: opacity 0.2s ease;
}

.product-show-gallery-main.is-switching img {
    opacity: 0.65;
}

.product-show-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    gap: 0.5rem;
}

.product-show-gallery-placeholder i {
    font-size: 3rem;
}

.product-show-gallery-zoom {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.product-show-gallery-zoom:hover {
    border-color: var(--brand-primary, #0379c3);
    color: var(--brand-primary, #0379c3);
}

.product-show-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.product-show-gallery-thumb {
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    padding: 0.35rem;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-show-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-show-gallery-thumb.is-active,
.product-show-gallery-thumb:hover {
    border-color: var(--brand-primary, #0379c3);
    box-shadow: 0 0 0 1px rgba(3, 121, 195, 0.15);
}

.product-show-summary {
    min-width: 0;
    color: #111827;
}

.product-show-badge {
    display: inline-block;
    background: rgba(3, 121, 195, 0.12);
    color: var(--brand-primary, #0379c3);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 3px;
    margin-bottom: 0.85rem;
}

.product-show-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.35;
    color: #111827 !important;
}

.product-show-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 1.1rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.product-show-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-show-stars {
    display: inline-flex;
    gap: 0.08rem;
    color: #fbbf24;
    font-size: 0.82rem;
}

.product-show-meta-item strong {
    color: #374151;
    font-weight: 600;
}

.product-show-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #16a34a;
    font-weight: 600;
}

.product-show-stock i {
    font-size: 0.95rem;
}

.product-show-price-block {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 1.1rem;
}

.product-show-price {
    margin: 0 0 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    background: var(--brand-primary, #0379c3);
    border: 1px solid var(--brand-primary, #0379c3);
    color: #fff !important;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.product-show-price:hover {
    background: #0266a6;
    border-color: #0266a6;
}

.product-show-inquiry-modal .modal-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e6edf5;
    background: linear-gradient(135deg, rgba(3, 121, 195, 0.08), rgba(3, 121, 195, 0.02));
}

.product-show-inquiry-modal .modal-footer {
    border-top: 1px solid #e6edf5;
    padding: 0.85rem 1.2rem 1rem;
    background: #fbfdff;
}

.product-show-inquiry-modal .modal-content {
    border: 1px solid #dbe7f3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.product-show-inquiry-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.product-show-inquiry-modal .modal-body {
    padding: 1.1rem 1.2rem 0.85rem;
}

.product-show-inquiry-modal .btn-close {
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.product-show-inquiry-modal .btn-close:hover {
    opacity: 1;
}

.product-show-inquiry-product {
    font-size: 0.92rem;
    color: #4b5563;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #f8fbff;
}

.product-show-inquiry-modal .form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.42rem;
}

.product-show-inquiry-modal .form-control {
    border: 1px solid #ced8e5;
    border-radius: 8px;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-show-inquiry-modal .form-control::placeholder {
    color: #9aa8b8;
}

.product-show-inquiry-modal textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.product-show-inquiry-modal .form-control:focus {
    border-color: var(--brand-primary, #0379c3);
    box-shadow: 0 0 0 0.2rem rgba(3, 121, 195, 0.16);
}

.product-show-inquiry-modal .form-control.is-invalid {
    border-color: #dc3545;
}

.product-show-inquiry-modal .invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.product-show-inquiry-modal .modal-footer .btn {
    min-width: 100px;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.52rem 0.95rem;
}

.product-show-inquiry-modal .modal-footer .btn-light {
    background: #eef2f7;
    border-color: #eef2f7;
    color: #374151;
}

.product-show-inquiry-modal .modal-footer .btn-light:hover {
    background: #e4eaf2;
    border-color: #e4eaf2;
}

.product-show-inquiry-modal .modal-footer .btn-primary {
    background: var(--brand-primary, #0379c3);
    border-color: var(--brand-primary, #0379c3);
}

.product-show-inquiry-modal .modal-footer .btn-primary:hover {
    background: #0266a6;
    border-color: #0266a6;
}

@media (max-width: 575.98px) {
    .product-show-inquiry-modal .modal-body,
    .product-show-inquiry-modal .modal-header,
    .product-show-inquiry-modal .modal-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

.product-show-excerpt {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #6b7280 !important;
}

.product-show-excerpt.rich-content > *:first-child {
    margin-top: 0;
}

.product-show-excerpt.rich-content > *:last-child {
    margin-bottom: 0;
}

.product-show-excerpt.rich-content p {
    margin: 0 0 0.65rem;
    color: inherit;
}

.product-show-excerpt.rich-content ul,
.product-show-excerpt.rich-content ol {
    margin: 0 0 0.65rem;
    padding-left: 1.2rem;
}

.product-show-excerpt.rich-content a {
    color: var(--brand-primary, #0379c3);
}

.product-show-purchase {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 1.1rem;
}

.product-show-actions {
    display: flex;
    margin-bottom: 0.85rem;
    position: relative;
    background: #fff;
}

.product-show-actions::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #fff;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.product-show-actions:hover::before {
    opacity: 1;
}

.product-show-action {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 0.65rem;
    background: #1a202c;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.product-show-action:hover {
    background: var(--brand-primary, #0379c3);
    color: #fff;
}

.product-show-action--shop {
    background: var(--brand-primary, #0379c3);
}

.product-show-action--shop:hover {
    background: #1a202c;
    color: #fff;
}

.product-show-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.product-show-secondary-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-show-secondary-actions a:hover {
    color: var(--brand-primary, #0379c3) !important;
}

.product-show-features {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 1.1rem;
}

.product-show-features ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #374151 !important;
}

.product-show-features li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151 !important;
}

.product-show-features li:last-child {
    margin-bottom: 0;
}

.product-show-taxonomy {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #6b7280 !important;
}

.product-show-taxonomy p {
    margin: 0 0 0.35rem;
    color: #6b7280 !important;
}

.product-show-taxonomy a {
    color: #374151;
    text-decoration: none;
}

.product-show-taxonomy a:hover {
    color: var(--brand-primary, #0379c3);
}

.product-show-share {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.product-show-share-label {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-right: 0.25rem;
}

.product-show-share a {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #111827;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-show-share a:hover {
    background: var(--brand-primary, #0379c3);
    transform: translateY(-1px);
}

.product-show-details {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 4px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.product-show-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827 !important;
    margin-bottom: 1rem;
}

.product-show-details .table {
    margin-bottom: 0;
    color: #374151;
}

.product-show-details .table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    width: 35%;
}

.product-show-details .table td,
.product-show-details .table th {
    border-color: #edf2f7;
}

.product-show-details .product-show-details-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.85rem;
}

.product-show-details .product-show-description-block {
    margin-bottom: 1.75rem;
}

.product-show-details .product-show-description {
    color: #374151 !important;
    line-height: 1.7;
    font-size: 1rem;
}

.product-show-details .rich-content > *:first-child {
    margin-top: 0;
}

.product-show-details .rich-content > *:last-child {
    margin-bottom: 0;
}

.product-show-details .rich-content p {
    margin: 0 0 0.9rem;
    color: inherit;
}

.product-show-details .rich-content h1,
.product-show-details .rich-content h2,
.product-show-details .rich-content h3,
.product-show-details .rich-content h4 {
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.25rem 0 0.65rem;
}

.product-show-details .rich-content h1 { font-size: 1.45rem; }
.product-show-details .rich-content h2 { font-size: 1.3rem; }
.product-show-details .rich-content h3 { font-size: 1.15rem; }
.product-show-details .rich-content h4 { font-size: 1.05rem; }

.product-show-details .rich-content ul,
.product-show-details .rich-content ol {
    margin: 0 0 0.9rem;
    padding-left: 1.35rem;
    color: inherit;
}

.product-show-details .rich-content li {
    margin-bottom: 0.35rem;
}

.product-show-details .rich-content a {
    color: var(--brand-primary, #0379c3);
    text-decoration: underline;
}

.product-show-details .rich-content strong,
.product-show-details .rich-content b {
    font-weight: 700;
    color: #111827;
}

.product-show-details .rich-content blockquote {
    margin: 0 0 0.9rem;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid var(--brand-primary, #0379c3);
    background: #f8fafc;
    color: #4b5563;
}

.product-show-details .rich-content table {
    width: 100%;
    margin: 0 0 0.9rem;
    border-collapse: collapse;
}

.product-show-details .rich-content table td,
.product-show-details .rich-content table th {
    border: 1px solid #edf2f7;
    padding: 0.55rem 0.7rem;
}

.product-show-zoom-modal .modal-content {
    border: 0;
    background: #fff;
}

.product-show-zoom-modal .modal-body {
    padding: 1rem;
}

.product-show-zoom-modal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.product-show-related {
    margin-top: 2.5rem;
}

.product-show-related-title {
    margin: 0 0 1.35rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    color: #111827 !important;
}

.product-show-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.related-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-product-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.related-product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: #fff;
    text-decoration: none;
}

.related-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.related-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.25rem;
}

.related-product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    background: #f97316;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 3px;
}

.related-product-card-body {
    padding: 0.95rem 1rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.related-product-card-category {
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.4;
}

.related-product-card-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827 !important;
    line-height: 1.45;
    text-decoration: none;
}

.related-product-card-title:hover {
    color: var(--brand-primary, #0379c3) !important;
}

.related-product-card-sku {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-primary, #0379c3);
    line-height: 1.2;
}

.related-product-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.related-product-card-stars {
    display: inline-flex;
    gap: 0.08rem;
    color: #fbbf24;
    font-size: 0.72rem;
}

.related-product-card-actions {
    display: flex;
    margin-top: auto;
    position: relative;
    background: #fff;
}

.related-product-card-actions::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #fff;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.related-product-card-actions:hover::before {
    opacity: 1;
}

.related-product-card-action {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 0.65rem;
    background: #1a202c;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.related-product-card-action:hover {
    background: var(--brand-primary, #0379c3);
    color: #fff;
}

.related-product-card-action--shop {
    background: var(--brand-primary, #0379c3);
}

.related-product-card-action--shop:hover {
    background: #1a202c;
    color: #fff;
}

@media (max-width: 767.98px) {
    .product-show-page {
        padding: 1.25rem 0 4.75rem;
    }

    .product-show-hero {
        padding: 1rem;
    }

    .product-show-actions,
    .related-product-card-actions {
        flex-direction: column;
    }

    .product-show-actions::before,
    .related-product-card-actions::before {
        display: none;
    }

    .product-show-action,
    .related-product-card-action {
        flex: 1 1 auto;
        width: 100%;
        min-height: 3rem;
    }
}

@media (max-width: 991.98px) {
    .product-show-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-show-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .product-show-related-grid {
        grid-template-columns: 1fr;
    }

    .product-show-secondary-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .product-show-secondary-actions a {
        min-height: 44px;
    }

    .product-show-details .table th,
    .product-show-details .table td {
        word-break: break-word;
    }
}
