:root {
    --brand-dark: #002f34;
    --brand-dark-2: #014d55;
    --brand-accent: #23e5db;
    --brand-border: #e7edf1;
    --brand-soft: #667085;
    --brand-bg: #f5f7fa;
    --brand-white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
}

body {
    background: var(--brand-bg);
}

.product-show-page {
    min-height: 100vh;
}

.product-gallery-card,
.product-info-card,
.related-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.product-gallery-card {
    padding: 14px;
}

.main-image-wrapper {
    background: linear-gradient(180deg, #fafcfd 0%, #f2f6f8 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 12px;
    position: relative;
}

.main-product-image {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.main-image-wrapper.zoom-active .main-product-image {
    transform: scale(1.08);
}

.gallery-expand-btn,
.gallery-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-dark);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    z-index: 2;
    transition: 0.2s ease;
}

.gallery-expand-btn:hover,
.gallery-nav:hover {
    transform: scale(1.05);
}

.gallery-expand-btn {
    top: 14px;
    right: 14px;
}

.gallery-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-prev:hover,
.gallery-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.gallery-counter,
.gallery-modal-counter {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(0, 47, 52, 0.86);
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.gallery-modal-counter {
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    z-index: 3;
}

.thumb-btn {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s ease;
}

.thumb-btn:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

.thumb-btn.active-thumb {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 2px rgba(0, 47, 52, 0.08);
}

.thumb {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.product-info-card {
    padding: 24px;
    position: sticky;
    top: 92px;
}

.category-tag,
.related-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.product-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-dark);
    line-height: 1.1;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    font-size: 0.96rem;
    line-height: 1.4;
}

.meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f7f8;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.description-box {
    border-top: 1px solid #edf2f5;
    padding-top: 16px;
}

.description-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.description-text {
    color: #475467;
    font-size: 0.95rem;
    line-height: 1.75;
    word-break: break-word;
}

.btn-outline-product,
.btn-whatsapp,
.btn-related-view,
.btn-share-action,
.btn-copy-link,
.btn-favorite-show {
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.btn-outline-product {
    border: 1px solid var(--brand-dark);
    background: #fff;
    color: var(--brand-dark);
}

.btn-outline-product:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-favorite-show {
    background: #fff;
    border: 1px solid #dbe5ea;
    color: var(--brand-dark);
}

.btn-favorite-show.is-favorited {
    background: #fff1f4;
    border-color: #ffb8c6;
    color: #d9204d;
}

.btn-favorite-show:hover {
    background: #f8fbfc;
    color: var(--brand-dark);
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.18);
}

.btn-whatsapp:hover {
    background: #1ebe5b;
    color: #fff;
    transform: translateY(-1px);
}

.share-actions {
    border-top: 1px solid #edf2f5;
    padding-top: 14px;
}

.btn-share-action {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid var(--brand-dark);
}

.btn-share-action:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-copy-link {
    background: #f5f8fa;
    color: var(--brand-dark);
    border: 1px solid #dbe5ea;
}

.btn-copy-link:hover {
    background: #ebf1f4;
    color: var(--brand-dark);
}

.copy-feedback {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.copy-feedback.show {
    display: block;
}

.related-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.related-subtitle {
    color: var(--brand-soft);
    font-size: 0.92rem;
}

.related-card {
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-content {
    padding: 14px;
}

.related-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 10px 0 8px;
    line-height: 1.35;
    min-height: 42px;
}

.related-location {
    color: var(--brand-soft);
    font-size: 0.82rem;
}

.related-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--brand-dark);
}

.btn-related-view {
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    background: transparent;
}

.btn-related-view:hover {
    background: var(--brand-dark);
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    z-index: 999;
    transition: 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    color: #fff;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 14, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-modal-close,
.gallery-modal-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: 0.2s ease;
}

.gallery-modal-close {
    top: 20px;
    right: 20px;
}

.gallery-modal-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-modal-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 991.98px) {
    .product-info-card {
        position: static;
        top: auto;
    }

    .main-image-wrapper {
        min-height: 340px;
    }

    .main-product-image {
        max-height: 310px;
    }
}

@media (max-width: 767.98px) {
    .product-gallery-card,
    .product-info-card,
    .related-card {
        border-radius: 16px;
    }

    .product-gallery-card {
        padding: 10px;
    }

    .product-info-card {
        padding: 18px;
    }

    .main-image-wrapper {
        min-height: 270px;
        border-radius: 14px;
        padding: 10px;
    }

    .main-product-image {
        max-height: 240px;
    }

    .thumb {
        height: 64px;
        border-radius: 10px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .meta-item {
        font-size: 0.9rem;
    }

    .description-text {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .btn-outline-product,
    .btn-whatsapp,
    .btn-related-view,
    .btn-share-action,
    .btn-copy-link,
    .btn-favorite-show {
        padding: 11px 14px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .related-image {
        height: 140px;
    }

    .related-name {
        font-size: 0.88rem;
        min-height: 38px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        right: 14px;
        bottom: 14px;
        font-size: 1.5rem;
    }

    .gallery-counter,
    .gallery-modal-counter {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
}