/*Product Cards*/

.product_card {
	display:flex;
	flex-wrap:wrap;
	justify-content: space-between;
	border-bottom: solid 2px var(--gold);
    border-radius: 15px;
    padding:2% 15px;
	align-self: start;
}

.product_card .left_section {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
	width:clamp(100px, 40%, 225px);
}

.product_card .middle_section,
.product_card .right_section{
	text-align:center;
	display:flex;
	flex-direction:column;
	justify-content: space-between;
}

.product_card .middle_section {
	flex:1;
}

.product_card .middle_section h4 {
	line-height:1.7em;
}

.product_card .right_section {
	width:clamp(100px, 25%, 150px);
}

.product_card .card_extender{
	cursor:pointer;
	user-select: none;
	--webkit-user-select: none;
}

.product_card .image_container {
	aspect-ratio: 1 / 1;
	display: flex;
    align-items: center;
	margin:auto;
}

.product .add_to_cart_button {
	width:100%;
	margin-top:10px;
}

.product_card .bottom_section {
	flex:1 0 100%;
}

.product_card .bottom_section div{
	border-top:1px solid var(--gold);
	padding: 5px 10px 0;
	margin-top:10px;
}

.product_card .bottom_section span {
	font-weight:500;
	margin-right:5px;
}

/*Gradient Bars*/
.gradient_bar_container p{
	display:flex;
	align-items: center;
	flex-wrap:wrap;
}

.gradient_bar {
	min-width:65px;
	width:50%;
	display:inline-block;
	position:relative;
	background:grey;
	border-radius:15px;
    margin:0 10px;
    height:12px;
}

#cbd_gradient.gradient_bar {
	max-width:70%;
}

.gradient_bar::after {
	content: ' ';
    position: absolute;
    background: var(--type_gradient_side);
    height: 8px;
    border-radius: 25px;
    margin: 2px 2px;
	max-width:98%;
	width: calc(var(--percentage)*1.8);
}

#cbd_gradient.gradient_bar::after {
	width: calc(var(--percentage)*5);
}

/*Var Selectors*/
.var_selectors {
	display: flex;
    align-items: center;
    gap: 5px;
    padding:10px 5px;
}

.var_dropdown {
	line-height:1.2em;
	border:none;
	border-bottom:solid 1px var(--gold);
}

.var_selector {
	border: solid 1px grey;
    border-radius: 15px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
	cursor:pointer;
	max-width: 25%;
	height: 45px;
	background:#f0f0f0;
}

.var_selector.active {
	background:var(--type_gradient_up);
	color:#fff;
	font-weight:500;
}

/*Mobile*/
.product_card_mobile {
	flex: 100%;
	flex-direction:column;
	flex-wrap:nowrap;
	padding: 5px 15px;
	gap:10px;
}
	
.product_card_mobile .title_container {
	max-width:50%;
}

.product_card_mobile .type_name {
	text-align:right;
	align-self: flex-start;
	line-height: 1.9em;
}
	
.product_card_mobile .left_section {
	flex-direction:row;
	flex-wrap:wrap;
}

.product_card_mobile .var_selectors {
	padding:10px 0;
}

.product_card_mobile .product_info {
	display:flex;
	width: 100%;
    justify-content: space-evenly;
	text-align:left;
}

.product_card_mobile .gradient_bars_container {
	display: flex;
	width: 100%;
	justify-content: space-between;
}

.product_card_mobile .gradient_bar_container p {
    justify-content: space-evenly;
}

.product_card_mobile .gradient_bar {
	min-width:85px;
}
	
.product_card_mobile .var_selectors {
	flex:0 1 100%;
}
	
.product_card_mobile .middle_section {
	flex-direction:row;
	justify-content: center;
	gap:10%;
	align-items: center;
	flex-wrap:wrap;
}

.product_card_mobile .image_container {
	margin-left:initial;
	max-width: 50%;
}

.product_card_mobile .left_section,
.product_card_mobile .middle_section,
.product_card_mobile .right_section {
	width:100%;
}

.product_card_mobile .price_tag {
	flex:40%;
}
	
.product_card_mobile .add_to_cart_button {
	width: 100%;
   	margin-bottom:10px;
	padding:15px !important;
}