/* ----- Variables resolved ----- 
$color-primary: #4c4c4c;
$color-secondary: #a6a6a6;
$color-highlight: #ff3f40;
*/

.product-card-wrapper h3 {
	font-size: 0.7em;
	letter-spacing: 1.2px;
	color: #a6a6a6;
}

.product-card-wrapper img {
	max-width: 100%;
	filter: drop-shadow(1px 1px 3px #a6a6a6);
}

/* ----- Product Section ----- */
.product {
	display: grid;
	grid-template-columns: 0.9fr 1fr;
	margin: 0 auto 2.5em auto;
	padding: 2.5em 0;
	background-color: white;
	border-radius: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ----- Photo Section ----- */
.product__photo {
	position: relative;
}

.photo-container {
	position: absolute;
	left: -1.5em;
	display: grid;
	grid-template-rows: 1fr;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	box-shadow: 4px 4px 25px -2px rgba(0, 0, 0, 0.3);
}

.photo-main {
	border-radius: 6px;
	background-color: #d32f2f;
	background: radial-gradient(#ff5252, #b71c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.photo-main .controls {
	display: flex;
	justify-content: space-between;
	padding: 0.8em;
	color: #fff;
    position: absolute;
    top: 0; width: 100%;
}

.photo-main .controls i {
	cursor: pointer;
}

.photo-main img {
	position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.product:hover .photo-main img {
    transform: scale(1.05);
}

.photo-album {
	padding: 0.7em 1em;
	border-radius: 0 0 6px 6px;
	background-color: #fff;
}

.photo-album ul {
	display: flex;
	justify-content: space-around;
}

.photo-album li {
	float: left;
	width: 55px;
	height: 55px;
	padding: 7px;
	border: 1px solid #a6a6a6;
	border-radius: 3px;
    list-style: none;
}

/* ----- Informations Section ----- */
.product__info {
	padding: 0.8em 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title h1 {
	margin-bottom: 0.1em;
	color: #4c4c4c;
	font-size: 1.5em;
	font-weight: 900;
}

.title span {
	font-size: 0.9em;
	color: #a6a6a6;
}

.price {
	margin: 1em 0;
	color: #ff3f40;
	font-size: 1.2em;
}

.price span {
	padding-left: 0.15em;
	font-size: 2.2em;
    font-weight: bold;
}

.variant {
	overflow: auto;
}

.variant h3 {
	margin-bottom: 1.1em;
}

.variant li {
	float: left;
	width: 35px;
	height: 35px;
	padding: 3px;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
    list-style: none;
}

.variant li:first-child,
.variant li:hover {
	border: 1px solid #a6a6a6;
}

.variant li:not(:first-child) {
	margin-left: 0.1em;
}

.description {
	clear: left;
	margin: 1.5em 0;
}

.description h3 {
	margin-bottom: 1em;
}

.description ul {
	font-size: 0.9em;
	list-style: disc;
	margin-left: 1em;
    color: #4c4c4c;
}

.description li {
	text-indent: -0.6em;
	margin-bottom: 0.5em;
}

.buy--btn {
	padding: 1.2em 2em;
	border: none;
	border-radius: 7px;
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 1px;
	color: #fff;
	background-color: #ff3f40;
	box-shadow: 2px 2px 15px -5px #4c4c4c;
	cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: auto;
}

.buy--btn:active {
	transform: scale(0.97);
}

.buy--btn:hover {
    background-color: #e63939;
}

/* Responsive adjust */
@media (max-width: 1024px) {
    .product {
        grid-template-columns: 1fr;
        padding: 1.5em;
    }
    .photo-container {
        position: relative;
        left: 0;
        height: 250px;
        margin-bottom: 1em;
    }
    .photo-main img {
        /* Reset any conflicting mobile styles since we use cover */
        object-fit: cover;
    }
    .product:hover .photo-main img {
        transform: scale(1.05);
    }
    .product__info {
        padding: 0;
    }
}
