
.tel-btn {background-color: #CC1027;}
.menu-bar li:nth-of-type(2) div {display: block;}
.menu-bar li a img {max-height: 2.5rem; object-fit: contain;}

/*  Breadcrum */
.breadcrumb {background-color: #f5f5f5; padding-block: 8px; --_c-grey-600: #6c757d;}
.breadcrumb li {display: inline-flex; align-items: center;}
.breadcrumb li:not(:last-child)::after {margin-inline: 8px; content: '/';}
.breadcrumb li a {color: var(--c-tertiary);}
.breadcrumb li a:hover {color: var(--c-primary);}
.breadcrumb li a svg {margin-right: 6px;}
.breadcrumb li .active {color: var(--_c-grey-600);}
.breadcrumb * {transition: var(--transition);}

/*  top content */
.top-content {padding-block: 30px; text-align: center; background-color: white;}
.top-content :where(h1, h2, h3, h4, h5, h5) {font-weight: 600; line-height: normal; margin-bottom: 12px; color: #000;}
.top-content h1 {font-size: var(--fs-lg); line-height: 36px;}
.top-content .head {max-height: 90px; text-align: left; color: #666666; line-height: 24px;}
.top-content .head:has(table) :where(h2, h3):not(:first-child) {padding-top: 15px; border-top: 1px solid #d0d0d0; margin-top: 15px;}
.top-content .head > :first-child {margin-top: 0;}
.top-content h2 {font-size: calc(var(--fs-md, 24px) + 2px);}
.top-content h3 {font-size: var(--fs-md, 24px);}
.top-content h4 {font-size: calc(var(--fs-md, 24px) - 2px);}
.top-content h5 {font-size: calc(var(--fs-sm, 18px) + 2px);}
.top-content h6 {font-size: var(--fs-sm);}
.top-content p {text-align: justify; margin-block: 10px;}
.top-content :is(ul, ol) {padding-left: 20px; margin-block: 15px;}
.top-content ul li {list-style: disc;}
.top-content ol li {list-style: decimal;}
.top-content .head > :last-child {margin-bottom: 0;}
/* TABLE */
.top-content table {max-width: 725px;}
table {width: 100%; border-spacing: 0; margin-block: 15px;}
table tr {display: grid; grid-template-columns: 25% 30% 1fr;}
table thead :is(th, td),
table tbody tr:not(:last-of-type) :is(th, td) {border-bottom: none;}
table :is(th, td) {display: flex; align-items: center; line-height: 1.3; padding: 6px 8px; border: 1px solid #000; word-break: break-word;}
table :is(th, td):not(:nth-of-type(2n+3)) {border-right: none;}
table th {justify-content: center; padding: 10px;}
table tbody tr > td:first-of-type {font-weight: 700;}

/*  main */
.main {padding-bottom: 42px; --_c-light: #A7A7A7;}
.main .wrapper {display: grid; grid-template-columns: repeat(2 ,1fr); align-items: center; column-gap: 30px;}
.main .gallery {grid-area: 1 / 1 / 3 / 2;}
.main .gallery > a {width: 100%;}
.main .gallery > a img:nth-of-type(1) {width: 100%; height: 474px; object-fit: contain;}
.main .gallery img { border: 1px solid #0000000D; border-radius: 15px; }
.main .gallery div {display: flex; align-items: center; gap: 10px; margin-top: 29px; justify-content: space-between; }
.main .quote-form {grid-area: 2 / 2 / 4 / 3;}
.modal {position: fixed; display: none; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0 0 0 / 0.9); z-index: 100;}
.modal .modal-content {height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;}
.modal .modal-img {max-width: 475px;}
.modal .caption {display: block; text-align: center; color: #ccc; padding-block: 10px; margin-top: 10px}
.modal :where(.prev, .next) {position: absolute; top: 50%; width: auto; font-size: 20px; font-weight: 700; color: #fff; padding: 16px; border-radius: 0 3px 3px 0; margin-top: -22px; cursor: pointer;}
.modal .next {right: 0; border-radius: 3px 0 0 3px;}
.modal :where(.prev, .next):hover {background-color: rgba(0,0,0,0.8);}
.modal .close {position: absolute; top: 15px; right: 35px; font-size: 40px; font-weight: 700; color: #f1f1f1;}
.modal :where(.close:hover, .close:focus) {color: #bbb; text-decoration: none;}
:where(.main, .main *) {transition: var(--transition);}

/*  Product-content */
.product-content {padding-bottom: 52px;}
.product-content .wrapper {display: grid; grid-template-columns: 65% 1fr; gap: 30px;}
.product-content .head :first-child {margin-bottom: 23px; font-size:calc(var(--fs-md) + 2px ); color: var(--c-dark-blue); text-align: center;}
.product-content .right-content {display: flex; flex-direction: column; background-color:#F8F8F880; padding: 13px 13px; border-radius: 10px; }
.product-content .right-content ul li {display: flex; align-items: center; font-size: var(--fs-xs); color: #666666; list-style: disc; list-style-position: inside; padding-block: 10px;} 
.product-content .right-content ul li:not(:last-of-type) {border-bottom: 1px solid #0000000D;}
.product-content .right-content ul li strong {position: relative; display: block; font-family: var(--ff-quicksand); min-width: 195px; font-weight: 600; color: #000;}
.product-content .right-content li:last-child {margin-bottom: 0;}
.product-content .image img {height: 100%;}

/*  bottom content   */
.bottom-content { --_c-light-50: #eee; --_c-light-100: #dedbd3; --_c-light-200: #c9c9c9; --_c-light-500: #697277;}
.bottom-content .head {max-height: 224px; margin-bottom: 20px; border-bottom: 1px solid #0000001A;}
.bottom-content .head > :first-child {font-size: calc(var(--fs-md, 24px) + 2px); color: var(--c-dark-blue);  margin-bottom: 20px;}
.bottom-content :where(h2, h3, h4) { font-size: calc(var(--fs-md, 24px) - 2px); font-weight: 700; color:var(--_c-light-500); margin-bottom: 10px;}
.bottom-content h2:not(:first-of-type) {font-size: var(--fs-18); font-weight: var(--fw-600); line-height: 26px; color: #393939;}
.bottom-content:has(table) :where(h2, h3):not(:first-child) {padding-top: 15px; border-top: 1px solid #d0d0d0; margin-top: 15px;}
.bottom-content p {margin-bottom: 10px;}
.bottom-content .head {max-height: 290px; margin-bottom: 20px;}
.bottom-content :is(ul, ol) {padding-left: 16px; margin-block: 15px;}
.bottom-content ul li {list-style: disc;}
.bottom-content ol li {list-style: decimal;}
.bottom-content li {font-size: var(--fs-base); color: var(--_c-light-500); margin-block: 5px;}
.bottom-content .head > :last-child {margin-bottom: 0;}

/*  testimonials   */
.testimonials { padding-block: 30px; --_c-light-100:#898989; --_c-light-200: #BDBDBD; --_c-light-500: #F8F8F866; }
.testimonials .head h2 {font-size: calc(var(--fs-xl) -  2px); color: var(--c-dark-blue); text-align: center;}
.testimonials .reviews-container {display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; transition: var(--transition);}
.testimonials .review {position: relative; background-color: var(--_c-light-500) ; border-radius: 15px; padding: 31px 25px 15px 25px; display: flex; flex-direction: column; justify-content: space-between;}
.testimonials .review p {height: 216px; color:#666666; text-align: center; line-height: 27px; overflow-y: auto; margin-bottom: 15px;}
.testimonials .review::after {position: absolute; bottom: 70px;  background: no-repeat center/cover url(https://www.emenacpackaging.com.au/wp-content/themes/emenac-au/assets/images//icons/comma.svg); width: 88px; height: 71px; z-index: 10; content: '';}
.testimonials .review .user-name {float: right; text-align: end;}
.testimonials .review .user-name h3 {font-size: var(--fs-20); transition: var(--transition);}
.testimonials .review .user-name span {color: #AAA1A1;transition: var(--transition); font-size:12px;}
.testimonials .review ul {display: flex; align-items: center; justify-content: end;}
.testimonials .review ul li {padding-right: 3px;}
.testimonials .user-name > :first-child{ display:block; color #525D63; font-weight:700; }

/*  related products   */
.related-products {padding-block: 30px; transition: var(--transition);}
.related-products .th_cards-container {display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top:24px;}
.related-products h2{ font-size: 26px; color: var(--c-dark-blue); text-align: center; }
.related-products .th_card > :nth-child(2) {display: block; color: var(--c-dark); text-align: center; padding-block: 14px; }
.related-products .th_card div {display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 22px 12px; transition: var(--transition);}
.related-products .th_card ul {display: inline-flex; align-items: center;}
.related-products .th_card ul li {padding-right: 3px;}
.related-products .th_card  div > :last-child {color: var(--c-primary); font-weight: 700;}
.related-products div img {   padding:12px; background-color: #f5f5f5; width: 258px; height: 258px; object-fit: cover; }

@media only screen and (max-width: 1200px) {
.main .wrapper {grid-template-columns: 50% 1fr;}
.main .gallery div img {max-width: 115px; max-height: 115px;}
.testimonials .reviews-container {gap: 20px;}
}

@media only screen and (max-width: 991px) {
.main .wrapper {grid-template-columns: 1fr; place-items: center; gap: 40px;}
.main .wrapper > * {grid-area: unset; height: 100%; margin: 0;}
.main .gallery {display: flex; align-items: center;}
.main .gallery div {flex-direction: column; margin: 0 0 0 5px;}
.main .gallery div img {max-width: 120px; max-height: 120px;}
.product-content .wrapper {grid-template-columns: 1fr;}
.testimonials .head {grid-template-columns: 1fr; gap: 20px; place-items: start;}
.testimonials .reviews-container {grid-template-columns: repeat(2, 1fr);}
.testimonials .review:last-child p {height: auto;}
.product-content { padding-bottom: 32px;  }
.product-content .image{text-align:center}
.related-products .th_cards-container  { grid-template-columns: repeat(3, 1fr); gap: 15px; padding-top:18px;}
}

@media only screen and (max-width: 767px) {
.main {padding-block: 24px;}
.main .gallery {flex-direction: column;}
.main .gallery > a img:nth-of-type(1) {height: 350px;}
.main .gallery div {flex-direction: row; margin: 5px auto 0;}
.main .gallery div img {max-width: 130px; max-height: 130px;}
.product-content .right-content ul li {display: block; padding-left: 6px;}
.product-content .right-content ul li strong {display: unset; min-width: auto;}
.testimonials .reviews-container {grid-template-columns: 1fr;}
.testimonials .review:last-child {grid-column: auto;}
.testimonials .review p {height: auto;}
.related-products .th_cards-container  { grid-template-columns: repeat(2, 1fr); padding-top:14px;}
.main .gallery div img {max-width: 118px; max-height: 118px;}
}

@media only screen and (max-width: 575px) {
.menu-bar .wrapper {gap: 24px;}
.menu-bar ul {display: flex;}
.tel-btn svg {padding: 0; border: none; margin: 0;}
.tel-btn span {display: none;}
.menu-bar li:first-of-type {display: none;}
.menu-bar li a img {max-height: 2rem;}
.top-content h1 {line-height: 1.4;}
}

@media only screen and (max-width: 475px) {
.menu-bar .wrapper {gap: 12px;}
.top-content h1 {font-size: var(--fs-md); }
.main .wrapper {gap: 20px;}
.main .gallery > a img:nth-of-type(1) {height: auto;}
.main .gallery div > * {width: calc(50% - 7px);}
.main .gallery div img {width: 100%; display: block; margin-inline: auto;}
.product-content {padding-bottom: 15px;}
.testimonials .review::after { bottom: 40px;}
.related-products .th_cards-container  { grid-template-columns: 1fr; padding-top:14px; place-items:center;}
.related-products div img {  width:100%; height: auto;  }
.product-content .wrapper { gap:0; }
.testimonials .reviews-container { margin-top:18px; }
.modal .modal-img {max-width: 100%;}

}
