@media (max-width: 768px) {
	.product-name {
		font-size: 22px;
	}
	.product-price {
		font-size: 22px;
	}
	.add-to-cart-btn {
		width: 100%;
		font-size: 14px;
	}
	#product-main-img {
		margin-bottom: 20px;
	}
}

.product-links {
	margin-top: 20px;
}
.product-links li {
	color: #333;
	font-size: 14px;
}
.product-links a {
	color: var(--color-main, #c62828);
	font-weight: 600;
	text-decoration: none;
}
.product-links a:hover {
	text-decoration: underline;
}

#product-main-img {
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	padding: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
#product-main-img .product-preview img {
	width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform .3s;
}
#product-main-img .product-preview img:hover {
	transform: scale(1.03);
}

#product-imgs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#product-imgs .product-preview {
	border: 2px solid transparent;
	transition: border-color .2s;
	cursor: pointer;
}
#product-imgs .product-preview:hover {
	border-color: var(--color-main, #c62828);
}
#product-imgs img {
	width: 100%;
	border-radius: 6px;
	object-fit: contain;
}

.product-image-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.product-image-modal.show{
    display:flex;
}

.product-image-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(10,12,20,.92);
    backdrop-filter:blur(6px);
}

.product-image-modal-content{
    position:relative;
    z-index:2;
    width:95vw;
    height:94vh;
    max-width:none;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 25px 80px rgba(0,0,0,.45);
}

.product-image-modal-close{
    position:absolute;
    top:18px;
    right:18px;
    z-index:30;
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:#252936;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.product-image-modal-toolbar{
    position:absolute;
    z-index:30;
    top:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:6px;
    padding:7px;
    background:rgba(255,255,255,.97);
    border:1px solid #e8eaf0;
    border-radius:999px;
    box-shadow:0 5px 20px rgba(0,0,0,.12);
}

.product-image-modal-toolbar button{
    width:38px;
    height:38px;
    border:0;
    background:transparent;
    border-radius:50%;
    cursor:pointer;
    color:#323646;
}

.product-image-modal-toolbar button:hover{
    background:#f3f4f7;
    color:var(--color-main,#E11D48);
}

.product-zoom-value{
    min-width:58px;
    text-align:center;
    font-size:12px;
    font-weight:700;
    color:#555b6d;
}

.product-image-modal-view{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#f8f9fc;
    cursor:grab;
    user-select:none;
}

.product-image-modal-view.dragging{
    cursor:grabbing;
}

#product-modal-image{
    width:auto;
    height:auto;

    /*
    AQUI está a principal mudança.
    A imagem agora pode ocupar praticamente toda a modal.
    */
    max-width:92vw;
    max-height:86vh;

    object-fit:contain;
    transform-origin:center center;
    transition:transform .12s ease;
    pointer-events:none;
    user-select:none;
}

body.product-modal-open{
    overflow:hidden;
}

@media(max-width:768px){

    .product-image-modal{
        padding:0;
    }

    .product-image-modal-content{
        width:100vw;
        height:100vh;
        border-radius:0;
    }

    #product-modal-image{
        max-width:96vw;
        max-height:82vh;
    }

    .product-image-modal-toolbar{
        top:auto;
        bottom:20px;
    }

    .product-image-modal-close{
        top:15px;
        right:15px;
    }
}