@import url('https://fonts.googleapis.com/css?family=Prompt:300,400,500,600,700,800|Sarabun:400,600,700,800&display=swap');

body {
	font-family: 'Sarabun',sans-serif;
	font-size: 14px;;
    background-color: #fff !important;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-webfont.woff2') format('woff2'),
         url('../fonts/Kanit-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../fonts/sarabun-regular.woff2') format('woff2'),
         url('../fonts/sarabun-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-400.woff2') format('woff2'),
         url('../fonts/Roboto-400.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Prompt',sans-serif;;
	margin-bottom: 10px;
    font-weight: 600;
}
button,
button:focus,
.action.primary:focus, 
.action-primary:focus,
.primary .action.primary,
.action.primary, 
.action-primary.tocart,
.cart-container .action.continue,
.modal-footer .action-primary.action-accept,
.smcqp-confirm .modal-footer button,
.sidebar .action.tocart,
.amform-form .action.primary, 
.amform-parent .action.primary,
.amform-form .action.primary:disabled,
.amform-parent .action.primary:disabled {
    background: #C4161C;
    font-family: 'Prompt',sans-serif;;
    font-weight: 400;
    color: #fff;
    opacity: 1;
    border-radius: 8px;
}
button:hover,
.action.primary:hover,
.primary .action.primary:hover,
.action-primary.tocart:hover,
.cart-container .action.continue:hover,
.modal-footer .action-primary.action-accept:hover,
.smcqp-confirm .modal-footer button:hover,
.sidebar .action.tocart:hover,
.amform-form .action.primary:hover, 
.amform-parent .action.primary:hover
{
    background: #9C070C;
}
a,
a:visited, 
.alink:visited {
	outline: none !important;
    color: #000;
}
a:hover,
a:active {
    color: #C4161C;
    cursor: pointer;
}
select,
textarea,
input[type="text"], 
input[type="password"], 
input[type="url"], 
input[type="tel"], 
input[type="search"], 
input[type="number"], 
input[type="datetime"], 
input[type="email"]{
    border: 1px solid #ccc;
    border-radius: 8px;
}
.clearer {
    clear: both;
}
.hidden-xs {
    display: none;
}
.visible-xs {
    display: block;
}
.hidden-xs img,
.visible-xs img {
    width: 100%;
}
html {
  scroll-behavior: smooth;
}


/* container */
.container {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.page-main {
    width: 100%;
    padding: 30px 15px;
}
.page-products .page-main {
    padding: 0 15px 30px;
}
.no-breadcrumbs main#maincontent {
    padding-top: 30px;
    padding-bottom: 30px;
}
.cms-home.no-breadcrumbs main#maincontent {
    padding: 0;
}



/* layout */
.cms-home .columns .column.main {
    padding: 0;
}
.page-layout-2columns-left .sidebar-main, 
.page-layout-2columns-right .sidebar-main {
    width: 100%;
    -ms-flex-order: 0;
    -webkit-order: 0;
    order: 0;
}
.page-layout-2columns-left .sidebar-additional, 
.page-layout-2columns-right .sidebar-additional {
    width: 100%;
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;
}
.page-layout-2columns-left .column.main, 
.page-layout-2columns-right .column.main {
    width: 100%;
    padding: 0;
    -ms-flex-order: 1;
    -webkit-order: 1;
    order: 1;
}



/* logo */
.logo {
    float: none;
    margin: 0;
    max-width: 100%;
    z-index: unset;
}



/* breadcrumbs */
.breadcrumbs {
    display: block;
    padding: 30px 0;
    max-width: unset;
}
.cms-home .breadcrumbs {
    display: none;
}
.page-title {
    font-weight: 500;
    text-transform: unset;
}
.breadcrumbs .items .item {
    border: none;
    font-family: 'Prompt',sans-serif;;
    /* เท่ากับเมนูหลัก (2026-08-25) เดิม 1.4rem */
    font-size: 1.75rem;
}
.breadcrumbs .items .item:first-child {
    border: none;
    padding: 0;
}
.breadcrumbs .items .item:after {
    display: none;
}
.breadcrumbs .items .item:before {
    left: 5px;
    content: '\f054';
    margin-right: 15px;
    font-family: FontAwesome;
    transform: unset;
    padding: 0;
    border: none !important;
    height: auto;
    top: 0;
    width: auto;
    /* ตามสัดส่วนเดิม 1rem:1.4rem -> 1.25rem:1.75rem */
    font-size: 1.25rem;
}
.breadcrumbs .items .item a {
    color: #000;
}
.breadcrumbs .items .item strong,
.breadcrumbs .items .item a:hover {
    color: #C4161C;
}
.catalog-product-view .breadcrumbs {
    padding: 30px 15px 0;
}


/* header */
.page-wrapper {
    overflow-x: unset;
}
.ammenu-button.-hamburger:before {
    content: '\e609';
    font-family: luma-icons;
    font-size: 2.5rem;
}
.page-header.amsearch-full-width.-opened .header.content {
    height: auto;
}
.main-header .header-content {
    /* layout via header-top + header-search */
}

/* ===== Row 1: Logo + Nav + Icons ===== */
.main-header .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 8px;
}
.main-header .header-top .left-content {
    flex: 0 0 auto;
}
.main-header .header-top .middle-content {
    flex: 1 1 auto;
    padding: 0 20px;
}
.main-header .header-top .icon-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Row 2: Search bar full width ===== */
.main-header .header-search {
    padding: 0 0 10px;
    border-top: 1px solid #f0f0f0;
}
.main-header .header-search .search-box {
    width: 100%;
}
.main-header .header-search .amsearch-form-block {
    justify-content: flex-start;
    width: 100% !important;
}
.main-header .header-search .amsearch-input-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}
.main-header .header-search .amsearch-input-wrapper .amsearch-input {
    width: 100% !important;
    border-radius: 25px;
    padding: 0 50px 0 20px;
    height: 44px;
    font-size: 2rem !important;
    font-weight: 700 !important;
    font-family: 'Prompt', sans-serif !important;
}
.main-header .header-search .amsearch-result-section {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    min-width: unset !important;
}
.header.content {
    padding: 0;
}
.main-header .logo img {
    margin: auto;
    width: 130px;
}
.header-content .toplinks-wrapper {
    display: none;
    font-family: 'Prompt',sans-serif;;
    text-transform: uppercase;
}
.user-toggle:hover:before {
    opacity: 0.8;
}
.toplinks-wrapper ul {
    padding: 5px 10px;
    font-family: 'Prompt',sans-serif;;
    box-shadow: 3px 4px 4px 0 rgb(0 0 0 / 30%);
    font-size: 1.4rem;
    width: max-content;
}
.wishlist-header {
    position: absolute;
    right: 20px;
    top: -28px;
}
.toplinks-wrapper .user-toggle.btn {
    background-color: transparent;
    padding: 0 !important;
    display: flex;
    align-items: center;
    color: #000;
}
.toplinks-wrapper .user-toggle.btn:after {
    display: none;
}
.main-header .toplinks-wrapper .user-toggle.btn:focus {
    box-shadow: none;
    border: none;
    background-color: transparent;
}
.welcome {
    color: #fff;
    display: none;
}
.top-bar {
    background: #000;
    color: #fff;
    font-family: 'Prompt',sans-serif;;
    display: none;
    padding: 10px 0;
}
.top-bar .container {
    text-align: center;
}
.top-message a {
    color: #fff;
}
.top-message a:hover {
    text-decoration: underline;
}
.toplinks-wrapper .links {
    display: flex;
    align-items: center;
}
.header-content .wishlist img {
    width: 25px;
}
.currency-wrapper .label.switcher-label {
    display: none;
}
.main-header .dropdown .mage-dropdown-dialog {
    min-width: 80px;
    left: -10px;
}
.ammenu-header-container.page-header {
    min-height: unset;
    position: absolute;
    top: 25px;
}
.language-wrapper img {
    width: 25px;
    border: 1px solid #fff;
    border-radius: 100%;
    margin: 0 0 0 5px;
}
.language-wrapper .view- {
    display: flex;
    align-items: center;
}
.toplinks-wrapper a {
    color: #000;
    display: flex;
    align-items: center;
}
.toplinks-wrapper a:hover {
    color: #C4161C;
}
.toplinks-wrapper .login:before,
.toplinks-wrapper .user-toggle:before {
    content: '';
    background: url(../images/icon/icon-user.svg) no-repeat 0 0/25px auto;
    width: 25px;
    height: 25px;
    display: inline-block;
}
.toplinks-wrapper .login:hover:before,
.toplinks-wrapper .user-toggle:hover:before {
    opacity: 0.6;
}
.header-content .additional a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-content .h-compare:before {
    content: '';
    background: url(../images/icon/icon-compare.svg) no-repeat 0 0/25px auto;
    width: 25px;
    height: 25px;
    margin: 0 15px;
}
.header-content .h-compare:hover:before {
    opacity: 0.6;
}
.message-topbar b {
    font-weight: 500;
}
.message-topbar span {
    font-weight: 300;
    margin: 0 0 0 10px;
}
.navigation-content {
    position: relative;
    top: 0;
    z-index: 9;
}
.header-content .right-content .icon-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}



/* sticky header */
.ammenu-nav-sections.-topmenu.-sticky {
    min-height: unset;
}
.main-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 15px 0px;
}



/* search box */
.amsearch-form-block {
    position: relative;
    justify-content: center;
}
.amsearch-wrapper-block {
    width: auto;
    padding: 0;
    z-index: 2;
}
.amsearch-button.-search {
    font-size: 0 !important;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 0 0 -20px;
}
.amsearch-button.-search:before {
    background: url(../images/icon/icon-search-blcak.svg) no-repeat center center/25px auto;
    content: '';
    width: 25px;
    height: 25px;
    display: inline-block;
    filter: brightness(0);
}
.amsearch-button.-search:hover {
    background: transparent;
    opacity: 0.5;
}
.amsearch-button.-search:hover:before {
    filter: brightness(10);
}
.amsearch-input-wrapper .amsearch-input {
    border: 1px solid #E9E9E9;
    padding: 0 15px;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Prompt',sans-serif;
    border-radius: 10px;
    width: 100%;
    color: #A0A0A0;
    height: 40px;
}
.amsearch-input-wrapper.-typed .amsearch-input {
    padding: 0 15px;
}
.amsearch-input-wrapper .amsearch-button.-loupe, 
.amsearch-input-wrapper.-typed .amsearch-button.-loupe {
    background: url(../images/icon/icon-search.svg) no-repeat center center/20px auto;
    right: 15px;
    opacity: 1;
    left: unset;
    height: 100%;
}
.amsearch-overlay-block {
    display: none !important;
}
.amsearch-input-wrapper .amsearch-input:focus {
    border: 1px solid #E9DFEA;
}
.amsearch-input-wrapper {
    width: 100%;
    max-width: 75%;
}
.amsearch-block-header .amsearch-link {
    min-width: unset;
    font-size: 1.3rem;
}
.amsearch-products-section .amsearch-block-header {
    padding: 0 20px 10px;
    font-family: 'Prompt',sans-serif;
}
.amsearch-products-section .product-item-description {
    display: none;
}
.amsearch-products-section .product-item-link {
    font-size: 1.5rem;
    font-family: 'Prompt',sans-serif;
    text-align: left;
}
.amsearch-items-section .product-item .price-box .price {
    font-size: 1.6rem;
}
.amsearch-items-section {
    padding: 0;
}
.amsearch-form-block.-opened {
    width: 100% !important;
    z-index: 1;
}
.amsearch-products-section.-list .amsearch-image {
    max-width: 80px;
}
.amsearch-input-wrapper .amsearch-button.-close {
    right: 45px;
}
.amsearch-form-block .amsearch-full_width-title {
    display: none;
}
.page-header.amsearch-full-width .amsearch-button {
    display: none;
}
.search-box .dropdown-toggle:after {
    background: url(../images/icon/icon-search-black.svg) no-repeat 0 0/25px auto;
    width: 25px;
    height: 25px;
    border: none;
}
.search-box .dropdown-toggle:hover:after {
    filter: invert(1) brightness(0.8);
}
.main-header .search-box .dropdown-toggle.btn-primary, 
.main-header .search-box .dropdown-toggle.btn-primary:hover, 
.main-header .search-box .dropdown-toggle.btn-primary:focus,
.main-header .search-box .dropdown-toggle.btn-primary:active {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    padding: 0 5px !important;
    box-shadow: none;
}
.search-box .dropdown-search {
    background-color: transparent;
    border: none;
    left: -120px !important;
    transform: translate3d(-125px, 35px, 0px) !important;
}
.search-wrapper {
    text-align: center;
}



/* search result */
.amsearch-products-section .amsearch-product-list {
    width: 100%;
}
.amsearch-products-section .amsearch-item:hover {
    background: #f4f5fa;
}
.amsearch-products-section .product-item-details {
    min-height: unset;
}
.amsearch-result-section {
    min-width: 300px;
    margin: 0;
}
.amsearch-result-section .price-box .price {
    font-size: 1.5rem;
}
.amsearch-products-section .product-item [data-role='priceBox'] > span {
    flex: none;
    margin: 0 10px 0 0;
}




/* main menu mobile */
.ammenu-menu-title {
    padding: 5px 0 10px;
}
.ammenu-tabs-list .ammenu-button.-active {
    background: #C4161C !important;
    color: #fff !important;
    font-weight: 400;
}
.ammenu-tabs-list {
    background: #f4f4f4 !important;
}
.ammenu-menu-wrapper {
    margin: 0;
}
.navigation ul {
    display: flex;
    flex-direction: column;
}
.navigation li {
    font-size: 1.6rem;
    font-family: 'Prompt',sans-serif;;
}
.navigation a {
    color: #000;
}
.navigation li.level0.last {
    border-bottom: none;
}
.navigation .level0>.level-top:hover,
.navigation a:hover {
    color: #F7C9C9;
}
.nav-sections-item-title {
    font-family: 'Prompt',sans-serif;;
    background: #fff;
    border: none;
}
.nav-sections-item-title.active {
    background: #F7C9C9;
}
.nav-sections-item-title.active .nav-sections-item-switch {
    color: #fff;
}
.nav-sections {
    background: #fff;
}
.navigation {
    background: #fff;
}
.nav-toggle {
    display: none;
}
.nav-toggle:before,
.nav-toggle:hover:before {
    color: #F7C9C9;
}
.nav-sections .header.links a {
    font-family: 'Prompt',sans-serif;;
    color: #000;
    font-weight: 400;
}
.sections.nav-sections .ui-menu-item-wrapper {
    text-transform: initial;
    font-weight: 400;
}
.navigation .all-category a {
    color: #F7C9C9;
}
.navigation .level0.active>a:not(.ui-state-active), 
.navigation .level0.has-active>a:not(.ui-state-active) {
    border-color: #F7C9C9;
}
.navigation span {
    font-weight: 400;
}
.navigation .parent > a .ui-menu-icon:after {
    font-size: 1.6rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: inherit;
    color: inherit;
    content: '\e622';
    font-family: 'luma-icons';
    vertical-align: middle;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: center;
}
.navigation .parent > a.ui-state-active .ui-menu-icon:after {
    content: '\e621';
}
.navigation .level0.parent>.level-top>.ui-menu-icon {
    position: absolute;
    right: 20px;
    display: inline-block;
    text-decoration: none;
}
.navigation .level0 .submenu li.parent>a>.ui-menu-icon {
    position: absolute;
    right: 20px;
}
.navigation .parent .level-top:after {
    content: '' !important;
}
.section-item-content .main-header {
    display: none;
}
.nav-sections .header.links a:hover {
    color: #F7C9C9;
}
.nav-open .nav-toggle:after {
    background: rgba(0,0,0,0.2);
}
.ammenu-nav-sections.-sidebar .ammenu-items.-root>.ammenu-item>.ammenu-link>.ammenu-icon-block.-toggle {
    width: auto;
}
#ammenu-sidebar .ammenu-link {
    padding: 10px 0 !important; 
    min-height: unset;
    font-family: 'Prompt',sans-serif;;
    text-transform: uppercase;
    border: none;
    font-weight: 400;
    color: #292F36 !important;
}
#ammenu-sidebar .ammenu-link:hover,
#ammenu-sidebar .-root > li:not(:first-child) .ammenu-link.-current {
    color: #C4161C !important;
}
.ammenu-nav-sections.-mobile.-accordion .ammenu-items.-root>.ammenu-item .ammenu-items {
    padding: 0 0 0 15px;
}
.ammenu-nav-sections.-sidebar.-opened {
    background: #fff !important;
}
.ammenu-menu-wrapper .ammenu-text-block {
    text-transform: uppercase;
        font-weight: 400;
}
.ammenu-account-section .ammenu-icon-block.-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 40px;
}
.ammenu-nav-sections.-sidebar .ammenu-items.-root>.ammenu-item:first-child>.ammenu-link.-current {
    color: #4D4D4D !important;
}
.ammenu-account-section .-root>li:nth-last-child(2) {
    display: none;
}



/* owl carousel */
.owl-carousel .owl-item img {
    width: 100%;
}
.owl-carousel.owl-theme .owl-nav {
    margin: 0;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
    position: absolute;
    left: 0;
    margin: 0;
}
.owl-carousel.owl-theme .owl-nav .owl-prev:before {
    opacity: 1;
    content: '';
    background: url(../images/icon/icon-arrow-left-white.svg) no-repeat center center/15px auto;
}
.owl-carousel.owl-theme .owl-nav .owl-next {
    position: absolute;
    right: 0;
    margin: 0;
}
.owl-carousel.owl-theme .owl-nav .owl-next:before {
    opacity: 1;
    content: '';
    background: url(../images/icon/icon-arrow-right-white.svg) no-repeat center center/15px auto;
}
.owl-carousel.owl-theme .owl-nav div {
    background-color: rgb(114 114 114 / 30%);
    border-radius: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 100%;
}
.owl-carousel.owl-theme .owl-nav div:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
.owl-carousel.owl-theme .owl-nav div:before {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.owl-carousel.owl-theme .owl-dots .owl-dot span {
    display: none;
}
.owl-carousel.owl-theme .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
}
.owl-carousel.owl-theme .owl-dots .owl-dot {
    background-color: rgb(255 255 255 / 35%);
    margin: 0 4px;
    width: 23px;
    height: 8px;
    border-radius: 14px;
}
.owl-carousel.owl-theme .owl-dots .owl-dot.active,
.owl-carousel.owl-theme .owl-dots .owl-dot:hover {
    background-color: #C4161C;
}



/* catalog page */
.category-image img {
    width: 100%;
}


/* catalog product grid */
.page-products .columns {
    padding-top: 0;
    display: flex;
}
.page-products .column.main .product-items {
    margin: 0 0 0 -8px;
    width: calc(100% + 16px);
    display: flex;
    flex-wrap: wrap;
}
.page-products .products.wrapper.products-grid .item {
    width: 50%;
    margin: 0 0 30px;
    padding: 0 8px;
}
.products-grid .product-item-info {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0 10px 10px 10px;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
}
.product-image-container {
    display: block;
    margin: auto;
}
.products-grid .product-item-info:hover {
    margin: 0;
    border: 1px solid #E5E5E5;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 0 10px 10px 10px;
}
.products-grid .product-item .product-item-info:hover .product-item-inner {
    box-shadow: none;
    border: none;
    margin: 0;
}
.products.wrapper.products-grid .item {
    float: none;
    width: 100%;
    padding: 0;
}
.product-item-name {
    margin: 15px 0 0;
    font-family: 'Prompt',sans-serif;;
}
.product-item-info .product-item-name a {
    color: #292F36;
    font-family: 'Prompt',sans-serif;;
    font-size: 1.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 48px;
}
.product-item-name a:hover {
    text-decoration: unset;
    color: #C4161C;
}
.stock.unavailable span {
    color: #ff0000;
    font-family: 'Prompt',sans-serif;
    font-size: 1.6rem;
    padding: 15px;
}
.action.towishlist:hover:before,
.action.tocompare:hover:before {
    color: #C4161C;
}
.products-grid .product-item-details {
    display: flex;
    flex-wrap: wrap;
}
.page-products .products-grid .product-item-inner:before {
    display: none;
}
.products-grid .product-item .price-box {
    margin: 10px 0;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.2;
    font-family: 'Prompt',sans-serif;
    width: 100%;
    overflow: hidden;
    height: 20px;
}
.products-grid .product-item-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    margin: 0;
}
.products-grid .product-item-inner {
    padding: 10px 0 0;
    margin: 0;
    position: unset;
    width: 100%;
    align-self: flex-end;
}
.products-grid .product-item-info:not(:hover):not(.active) .product-item-inner {
    padding: 10px 0 0;
    margin: 0;
    box-shadow: none;
    position: unset;
    overflow: visible;
    width: 100%;
    height: auto;
    align-self: flex-end;
    z-index: 1;
}
.product-item-info .short-description {
    font-family: 'Prompt',sans-serif;;
    color: #AAAAAA;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-item-info .product-item .old-price {
    margin: 0;
}
.product-item-actions .actions-secondary .action.towishlist:before {
    content: '';
    background: url(../images/icon/icon-wishlist.svg) no-repeat center center/25px auto;
    width: 25px;
    height: 25px;
}
.product-item-actions .actions-secondary .action.towishlist:hover:before {
    background: url(../images/icon/icon-wishlist-1.svg) no-repeat center center/25px auto;
}
.product-item-actions .actions-secondary .action.towishlist span {
    width: auto;
    height: auto;
    overflow: visible;
    position: unset;
    font-family: 'Prompt',sans-serif;;
    color: #ABABAB;
    font-size: 1.2rem;
    font-weight: 300;
    display: none;
}
.products-grid .product-item-actions button.tocart {
    padding: 8px 0 !important;
    height: auto;
    width: 100%;
}
.products-grid .product-item-actions .actions-primary {
    width: 100%;
}
.products-grid .product-item-actions button.tocart span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.product-item-actions .actions-secondary {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}
.product-item-actions .actions-primary+.actions-secondary>.action:hover span {
    color: #F7C9C9;
}
.product-item-actions .actions-primary+.actions-secondary>.action.tocompare {
    display: none;
}
.product-item .swatch-option.text {
    font-size: 1.2rem;
    padding: 5px 10px;
}
.product-item-inner .control.qty-change {
    display: flex;
    align-items: center;
}
.product-item-inner .control.qty-change button {
    background: transparent;
    color: #000;
    font-weight: 600;
    font-size: 1.8rem !important;
    padding: 0 15px !important;
    border: 1px solid #EAEAEA !important;
}
.product-item-inner .control.qty-change button.decreaseqty {
    border-radius: 5px 0 0 5px;
}
.product-item-inner .control.qty-change button.increaseqty {
    border-radius: 0 5px 5px 0;
}
.product-item-inner .control.qty-change input {
    width: 35px;
    text-align: center;
    border: solid #EAEAEA;
    border-width: 1px 0;
    border-radius: 0;
}
.page-products .products-grid .product-item-actions {
    justify-content: center;
}
.product-item-actions .actions-secondary .tocompare {
    display: none;
}
.product-item-actions .actions-primary>.stock.unavailable {
    padding: 0;
    min-height: 46px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    border-radius: 8px;
}
.products-grid .price-box .special-price {
    margin-right: 5px;
}
.product-item .product-reviews-summary .reviews-actions {
    display: none;
}
.product-reviews-summary.empty:before {
    content: '';
    display: block;
    height: 20px;
    width: 100px;
    background: url(../images/icon/rating-blank.svg) no-repeat 0 0 / 100px auto;
    vertical-align: middle;
    z-index: -2;
}
.rating-summary .rating-result::before, .rating-summary .rating-result > span::before, .product-reviews-summary .rating-summary .rating-result:before {
    content: '';
    background: url(../images/icon/rating-blank.svg) no-repeat 0 0 / 100px auto;
    height: 20px;
}
.review-ratings .rating-summary .rating-result > span::before, .account .rating-summary .rating-result > span::before, .product-reviews-summary .rating-summary .rating-result > span:before {
    content: '';
    background: url(../images/icon/rating.svg) no-repeat 0 0 / 100px auto;
}
.product-reviews-summary .rating-summary .rating-result {
    width: 100px;
}
.products-grid .product-reviews-summary {
    margin: 0 0 5px;
}



/* catalog product list */
.products-list .product-item-photo {
    max-width: 300px;
    width: 40%;
}
.products-list .product-item {
    border-bottom: 1px solid #eaeaea;
    margin: 0 0 30px;
}
.product-item-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.products-list .product-item-actions button.tocart span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.products-list .product-item-actions button.tocart {
    padding: 15px 20px !important;
    height: auto;
}
.products-list .product-item-actions .actions-primary form {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.products-list .product-item-actions button.tocart:hover span:before {
    filter: brightness(10);
}
.products-list .product-item-info .product-item-name a {
    text-align: left;
}
.products-list .product-item-actions .actions-secondary {
    display: flex;
    align-items: center;
}
.products-list .product-item-actions .actions-secondary>.action {
    text-align: left;
    margin: 20px 0;
}
.products-list .actions.product-item-actions {
    display: flex;
    align-items: center;
}
.products-list .actions.product-item-actions .actions-primary {
    margin: 0 15px 0 0;
}
.products-list .product-item-actions .actions-secondary {
    position: unset;
}
.products-list .product-item-actions .actions-primary+.actions-secondary>.action.tocompare {
    display: inline-block;
}
.product-item-actions .actions-secondary .action.tocompare:before {
    content: '';
    background: url(../images/icon/icon-compare.svg) no-repeat 0 0/25px auto;
    width: 25px;
    height: 25px;
    filter: invert(.8) grayscale(1);
}
.product-item-actions .actions-secondary .action.tocompare:hover:before {
    background: url(../images/icon/icon-compare-red.svg) no-repeat 0 0/25px auto;
    filter: unset;
}



/* quick view */
.product-item-info .amquickview-hover {
    background-color: rgb(0 0 0 / 20%);
    width: 50px;
    height: 50px;
    border-radius: 100%;
    display: none !important;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    opacity: 1;
}
.product-item-info .amquickview-hover:hover {
    background-color: #C4161C;
}
.product-item-info .amquickview-hover a {
    font-size: 0;
    background: url(../images/icon/icon-search.svg) no-repeat center center/20px auto;
    width: 50px;
    height: 50px;
    padding: 25px;
    filter: brightness(10);
}
.product-item-info .amquickview-hover img.am-quickview-icon {
    display: none !important;
}
.fancybox-iframe {
    border-radius: 3px;
}
.fancybox-slide--iframe .fancybox-content .fancybox-close-small:focus {
    position: absolute;
}
.fancybox-slide--iframe .fancybox-content .fancybox-close-small:hover:after {
    color: #eee;
}
.fancybox-content .fancybox-close-small:focus:after {
    outline: none;
}



/* sidebar catalog product */
.sidebar-additional .block-compare .actions-toolbar {
    display: flex;
    align-items: center;
}
.sidebar-additional .block-compare .actions-toolbar .action.primary {
    margin: 0 15px 0 0;
    box-shadow: none;
    width: auto;
}
.sidebar-additional .block-compare .actions-toolbar .action.primary:hover {
    color: #fff;
}
.page-products .block.block-reorder {
    display: none;
}
.sidebar.sidebar-additional .block {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    z-index: 1;
}
.sidebar.sidebar-additional .block .block-title {
    background-color: #C4161C;
    border-radius: 8px;
    color: #fff;
    padding: 5px 15px;
    font-family: 'Prompt',sans-serif;;
}
.sidebar.sidebar-additional .block .block-title strong {
    font-weight: 400;
}
.sidebar.sidebar-additional .block-compare .counter, 
.sidebar.sidebar-additional .block-wishlist .counter {
    color: #fff;
}
.sidebar .product-items .product-item-info .product-item-photo {
    position: absolute;
}
.sidebar .block-viewed-products-grid .product-items .product-item-details {
    margin-left: 85px;
    text-align: left;
}
.sidebar .product-item-photo .product-image-container {
    width: 75px !important;
}
.sidebar .block-wishlist .actions-toolbar>.primary {
    text-align: left;
}
.sidebar .products-grid .product-item-info {
    border: none;
    padding: 0;
}
.sidebar .block.widget .products-grid .product-item .actions-secondary {
    padding: 0;
}
.sidebar .product-items .product-item:not(:last-child) {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.sidebar .block.widget .products-grid .product-item {
    width: 100%;
    margin-left: 0;
}
.sidebar .block .product-item:last-child {
    padding: 0 0 10px;
}
.sidebar .price-box .old-price .price {
    font-size: 1.5rem;
}
.sidebar .price-box .price {
    font-size: 1.8rem;
}
.sidebar .product-item-actions .actions-primary>.stock.unavailable {
    font-size: 0;
    padding: 0;
}
.sidebar .product-item-actions .actions-primary>.stock.unavailable span {
    font-size: 1.4rem;
    margin: 0 10px 0 0;
}
.sidebar .products-grid .product-item-info:hover {
    box-shadow: none;
}
.sidebar .products-grid .product-item-info:hover .product-item-photo {
    left: 0;
    top: 0;
}
.sidebar .product-items .product-item-details {
    margin: 0 0 0 85px;
}
.block-viewed-products-grid .products-grid .product-item .price-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
}
.block-viewed-products-grid .products-grid .price-box .special-price {
    margin: 0 10px 0 0;
}
.sidebar .product-items .product-item-actions {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: left;
    display: none;
}
.sidebar .product-item-actions .tocart:hover:before {
    background: url(../images/cart-yellow.svg) no-repeat center center/25px auto;
}
.sidebar .product-item-actions .tocart:before {
    content: '';
    background: url(../images/cart-black.svg) no-repeat center center/25px auto;
    width: 25px;
    height: 25px;
    display: inline-block;
}
.sidebar .product-item-actions .tocart span {
    display: none;
}
.sidebar .product-item-details .product-item-actions .tocart {
    padding: 0 10px 0 0 !important;
}
.sidebar .product-item-actions .actions-primary+.actions-secondary>.action {
    padding: 0 !important;
}
.sidebar .product-item-details .product-item-actions .tocart {
    background: transparent;
}
.sidebar .product-item-info .product-item-name a {
    text-align: left;
}




/* filter product */
.filter-options-title {
    font-weight: 500;
}
.filter .block-subtitle {
    font-size: 1.5rem;
    font-family: 'Prompt',sans-serif;;
    font-weight: 500;
}
#layered-filter-block {
    position: unset;
    padding: 0;
    margin: 0 0 15px;
    display: inline-flex;
    border: none;
    font-family: 'Prompt',sans-serif;;
}
.filter-title strong {
    display: block;
    position: unset;
}
.filter.active .filter-title strong {
    width: 100%;
    text-align: right;
    height: 100%;
}
.filter.active .filter-title strong:after {
    margin: 10px 0;
}
.filter-options-content a:hover {
    background-color: transparent;
}
.filter-subtitle {
    display: none;
}
.filter-title {
    display: block;
}
.filter-options {
    display: none;
    margin: 0;
}
.filter.active .filter-subtitle {
    background: transparent;
    display: block;
    height: 50px;
    left: 0;
    line-height: 32px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1;
}
.filter.active .filter-options {
    background: #fff;
    bottom: 0;
    display: block;
    left: 0;
    overflow: scroll;
    position: fixed;
    right: 0;
    top: 50px;
    z-index: 10;
}
.filter-options-content .count {
    display: inline-flex;
}
.block.filter {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 0 0 15px;
}
.block.filter .title {
    display: none;
}
.block.filter dt {
    font-weight: 500;
    padding: 0 40px 10px 10px;
    border-bottom: 1px solid #ccc;
    font-family: 'Prompt',sans-serif;;
    font-size: 1.5rem;
    margin: 0;
}
.block.filter dd {
    padding: 10px;
    margin: 0;
}
.block.filter .options {
    margin: 0;
}
.block.filter .item {
    margin: 5px 0;
}
.block.filter .count {
    display: inline-flex;
    color: #757575;
    padding: 0 5px;
}
.block.filter .count:before {
    content: '(';
}
.block.filter .count:after {
    content: ')';
}
.filter-options-content .item a:hover,
.filter-options-content .item a:hover .count,
.filter-options-content .items.-am-singleselect .amshopby-link-selected, 
.filter-options-content .swatch-option.selected+.am-shopby-swatch-label,
.filter-options-content .items.-am-singleselect .amshopby-link-selected .count, 
.filter-options-content .swatch-option.selected+.am-shopby-swatch-label .count {
    color: #C4161C;
}
.catalog-topnav.amasty-catalog-topnav {
    display: none;
}
.filter-options-item .filter-options-content .am-shopby-form {
    margin: 0 0 -15px;
}
.filter-actions .filter-clear,
.filter-actions .filter-clear:focus, 
.filter-actions .filter-clear:active {
    color: #fff;
    background-color: #000;
    display: block;
    text-align: center;
    font-family: 'Prompt',sans-serif;;
    padding: 5px 0;
    border-radius: 3px;
}
.filter-actions .filter-clear:hover {
    background-color: rgb(0 0 0 / 70%);
    color: #fff;
}
.filter-options .am-filter-go {
    background-color: #000;
    font-family: 'Prompt',sans-serif;;
}
.filter-options .am-filter-go:hover {
    background-color: rgb(0 0 0 / 70%);
}
.am-filter-items-color .swatch-option {
    float: none;
    margin: 0;
}
.amshopby-input-wrapper .amshopby-currency {
    bottom: 10px;
}
.filter-options-item {
    border-color: #eee;
}



/* toolbar catalog product */
.toolbar-products .modes {
    display: block !important; 
}
.modes-mode {
    background-color: #f0f0f0;
    box-shadow: none;
    color: #5e5e5e;
    border: 1px solid #ccc;
    border-right: 0;
    float: left;
    font-weight: 400;
    line-height: 1;
    padding: 7px 10px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}
.modes-mode:before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: inherit;
    content: '\e60d';
    font-family: 'luma-icons';
    vertical-align: middle;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: center;
}
.mode-list:before {
    content: '\e60b';
}
.modes-mode>span {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
#modes-label {
    display: none;
}
.modes-label+.modes-mode {
    border-radius: 3px 0 0 3px;
}
.modes-mode:last-child {
    border-radius: 0 3px 3px 0;
    border: 1px solid #dddddd;
}
.toolbar-products {
    border: solid #dddddd;
    border-width: 1px 0;
    padding: 5px 0;
    font-family: 'Prompt',sans-serif;;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modes-mode.active {
    background: #C4161C;
    border-color: #C4161C;
    box-shadow: none;
}
.modes-mode:before,
.modes-mode:hover:before {
    color: #fff;
}
.modes-mode:hover {
    background: #C4161C;
    border-color: #C4161C;
}
.products.wrapper~.toolbar-products .pages {
    display: inline-block;
    margin: 0;
}
.page-products .sorter {
    position: unset;
}
.sorter-label {
    font-weight: 400 !important;
}
.toolbar select {
    background-color: transparent;
    border: 1px solid #dddddd;
}
.toolbar:before,
.toolbar:after {
    display: none;
}
.pages strong.page {
    background: #C4161C;
    color: #fff;
    padding: 0 10px;
    border-radius: 3px;
}
.pages a.page:hover,
.pages a.page:visited:hover {
    background: #C4161C;
    color: #fff;
}
.pages a.page, 
.pages a.page:visited {
    color: #C4161C;
    padding: 0 10px;
    border-radius: 3px;
}
.pages .item {
    margin: 0 2px;
}


/* === แสดงจำนวนสินค้าในหมวด (toolbar-amount) ข้าง grid/list icons — เดิม yttheme.css ซ่อนไว้ (2026-08-21) === */
.toolbar-products .toolbar-amount {
    display: block !important;
    font-family: 'Prompt',sans-serif;
    color: #5e5e5e;
    font-size: 1.4rem;
    font-weight: 600;
    order: 1;
}
.toolbar-products .modes {
    order: 0;
}
.toolbar-products .sorter {
    order: 2;
}



/* product view */
.product-add-form .box-tocart .action.tocart span {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-info-main .product-add-form .fieldset {
    display: flex;
    flex-wrap: wrap;
}
.product-info-main .product-add-form .field.qty {
    display: flex;
    align-items: center;
    margin: 0 15px 0 0 !important;
}
.product-add-form .box-tocart .action.tocart {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
    width: 100%;
    margin: 0;
}
.product-info-main .product-add-form .box-tocart .field.qty label {
    margin-bottom: 0;
}
.product-info-main .product.attribute.sku .type:after {
    content: '';
}
.catalog-product-view .product-info-main .available.stock span {
    color: #22b22e;
    font-weight: 500;
}
.product-info-main .stock.unavailable {
    font-weight: 500;
    color: #ff0000;
}
.product-info-main .product-addto-links a.action {
    font-weight: 400;
    font-family: 'Prompt',sans-serif;;
    letter-spacing: normal;
}
.product-info-main .product-addto-links a.action:hover {
    color: #C4161C;
}
.catalog-product-view .product-info-main .available.stock span:before {
    content: '\f046';
    display: inline-block;
    font-family: FontAwesome;
    line-height: 1;
    text-align: center;
    font-size: 14px;
    position: relative;
    top: 1px;
    margin-right: 5px;
}
.product-info-main .product-info-price .price-box .price-container>span {
    display: inline-block;
}
.product-info-price .price-box .special-price .price-container .price,
.product-item .price-box .special-price .price,
.price-box .special-price .price {
    color: #FF2121;
}
.product-item .old-price {
    margin: 0;
}
.product-info-price .price-box .price-container .price {
    color: #5A5A5A;
    font-size: 3rem;
}
.product-info-main .product-info-price .old-price .price-wrapper .price {
    color: #ADADAD;
}
.product-item .price-box .price,
.price-box .price {
    font-size: 1.7rem;
    color: #5A5A5A;
    font-family: 'Prompt',sans-serif;;
    font-weight: 500;
}
.price-box .old-price .price {
    color: #ADADAD;
    font-size: 1.2rem;
    font-weight: 400;
}
.price-box .special-price .price-label, 
.price-box .old-price .price-label {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.normal-price .price-label {
    display: none;
}
.product-info-main .product-info-price .price-box {
    padding-bottom: 0;
    font-family: 'Prompt',sans-serif;;
}
.product.info .product.data.items>.item.title a {
    font-family: 'Prompt',sans-serif;;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: unset;
}
.product.data.items>.item.title.active a {
    color: #000 !important;
}
.product.data.items>.item.title.active {
    background-color: #f7f7f7;
}
.product.info .product.data.items #reviews {
    border-bottom: 1px solid #e1e1e1 !important;
}
.review-control-vote label:before, .review-control-vote:before {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 5px;
}
.review-control-vote label:before {
    color: #C4161C;
}
.review-form .action.submit.primary {
    background: #C4161C;
    font-weight: 400;
    color: #fff;
}
.review-form .action.submit.primary:hover {
    background: #9C070C;
    color: #fff;
}
.catalog-product-view .product-info-main .control-qty {
    float: none;
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 10px;
}
.catalog-product-view .product-info-main .product-add-form .box-tocart .fieldset input.qty {
    border-width: 1px 0;
    border-radius: 0;
    border-color: #EAEAEA;
    width: 40px;
    height: 40px;
}
.control-qty .quantity-controls.quantity-plus {
    background-position: 6px 13px;
    border-radius: 0 3px 3px 0;
    background-size: 14px;
}
.control-qty .quantity-controls.quantity-minus {
    background-position: 6px -49px;
    border-radius: 3px 0 0 3px;
    background-size: 14px;
}
.control-qty .quantity-controls {
    height: 40px;
    width: 28px;
    background: url(../images/plus-minus.svg) no-repeat transparent;
    border: 1px solid #888;
}
.control-qty .quantity-controls {
    height: 40px;
    width: 28px;
    background: url(../images/plus-minus.svg) no-repeat transparent;
    border: 1px solid #EAEAEA;
}
.control-qty .quantity-controls:hover {
    background-color: #eee;
}
.swatch-option.text {
    font-weight: 400;
}
.product-item-description ul, 
.product.attribute ul {
    list-style: inside;
    padding: revert;
}
.additional-attributes-wrapper .additional-attributes>tbody>tr>th {
    font-family: 'Prompt',sans-serif;;
}
.fotorama-item .fotorama__nav-wrap .fotorama__thumb .fotorama__img {
    width: 100%;
}
.fotorama-item .fotorama__thumb {
    background-color: transparent;
    border: 1px solid #ccc;
}
.fotorama__nav .fotorama__thumb-border {
    border: 1px solid #000;
}
.swatch-option.disabled {
    border: 1px solid #dadada;
    background: #eee;
    text-decoration: line-through;
}
.swatch-option.disabled:after {
    display: none;
}
.swatch-option.text.selected {
    outline: 1px solid #F7C9C9;
}
.swatch-option:focus {
    box-shadow: none;
}
.product-info-main .product-reviews-summary {
    display: flex;
    align-items: center;
    margin: 0 0 15px;
}
.product-info-main .product-reviews-summary.empty .reviews-actions {
    margin: 0 0 0 15px;
}



/* label */
.amlabel-position-wrapper {
    z-index: 1;
}
.product.media .amlabel-text {
    line-height: 2.2 !important;
}




/* login page */
.login-container .block .block-title {
    font-size: 2rem;
    font-family: 'Prompt',sans-serif;;
    padding-bottom: 5px;
}
.field.password .control .input-text {
    z-index: 1;
}


/* register page */
.form-create-account .fieldset {
    border: none;
    background-color: transparent;
    min-height: unset;
    padding: 0;
}
.form-create-account .actions-toolbar {
    background-color: transparent;
    border: none;
    padding: 0;
}
.form-create-account .actions-toolbar >.primary {
    display: block;
    float: right;
}
.form-create-account .fieldset .legend span {
    font-family: 'Prompt',sans-serif;;
    font-size: 2rem;
}


/* account page */
.fieldset>.legend {
    font-family: 'Prompt',sans-serif;;
}
.block-title {
    font-family: 'Prompt',sans-serif;;
}
.account .box-title {
    font-weight: 500;
    font-family: 'Prompt',sans-serif;;
}
.account.page-layout-2columns-left .column.main {
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;
}
.account.page-layout-2columns-left .sidebar-main .items {
    display: block;
}
.block-collapsible-nav .item {
    display: block;
    font-family: 'Prompt',sans-serif;;
}
.block-collapsible-nav .item.current a, 
.block-collapsible-nav .item.current>strong {
    border-color: #C4161C;
    color: #C4161C;
}
.block-reorder .block-title,
.block-reorder .block-content {
    display: block;
}
.block-reorder .block-title strong,
.block-reorder .block-content strong {
    display: block;
    font-weight: 400;
}
.table>thead>tr>th, 
.table tr>td {
    width: fit-content;
    font-family: 'Prompt',sans-serif;;
}
.block.block-order-details-view {
    margin: 10px 0;
}
.block-addresses-default .box-actions a,
.customer-account-index .box-actions a {
    text-decoration: underline;
}


/* wishlist page */
#wishlist-view-form .actions-toolbar button {
    width: auto;
    margin: 0 0 10px;
    border-radius: 8px;
}
#wishlist-view-form .actions-toolbar button:hover {
    color: #fff;
}
.form-wishlist-items .products-grid.wishlist .product-items li.product-item {
    width: calc((100% / 2) - 20px) !important;
    float: none;
    text-align: center;
    border: 1px solid #cccc;
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
}
.form-wishlist-items .products-grid.wishlist .product-item-photo {
    float: none;
}
.form-wishlist-items .products-grid.wishlist .product-item-info .field.comment-box {
    display: none;
}
.form-wishlist-items .products-grid.wishlist .product-item-info .box-tocart {
    float: none;
    margin: 0;
}
.form-wishlist-items .products-grid.wishlist .product-items li.product-item .product-item-inner {
    text-align: center;
    display: block;
    position: unset !important;
    border: none;
    opacity: 1;
    transform: scale(1);
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    padding: 0 10px;
    height: auto;
}
.form-wishlist-items .products-grid.wishlist .product-items li.product-item .fieldset .product-item-actions {
    float: none;
    display: block;
}
.form-wishlist-items .products-grid.wishlist .product-items li.product-item .fieldset .field.qty {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px !important;
}
.form-wishlist-items .products-grid.wishlist .product-items li.product-item .fieldset .field.qty .control {
    margin: 0 10px;
}
.form-wishlist-items .products-grid.wishlist .product-items li.product-item .fieldset .field.qty label {
    margin: 0;
}
.form-wishlist-items .products-grid .product-item-actions {
    float: none;
    display: inline-block;
    margin: 0 0 10px;
}
.wishlist-index-index .products-grid .product-item-actions a {
    float: none !important;
}
.form-wishlist-items .products-grid.wishlist .product-item-info > .product-item-name {
    margin: 10px 0;
    padding: 10px;
}
.products-grid.wishlist .product-image-container {
    max-width: 100%;
}
.form-wishlist-items .products-grid.wishlist .product-items {
    display: flex;
    flex-wrap: wrap;
}
.products-grid.wishlist .product-item .price-box {
    justify-content: center;
    padding: 0 10px;
}
.products-grid.wishlist .product-item .tocart {
    width: 100%;
}
.products-grid.wishlist .product-item-info .product-item-inner .actions-primary {
    opacity: 1;
    transform: scale(1);
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
}
.products-grid.wishlist .product-item .box-tocart .stock {
    height: 40px;
    background-color: #eee;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* compare page */
.catalog-product_compare-index .action.print {
    display: inline-block;
    margin: 0 0 15px;
    float: right;
}
.table-comparison .cell.remove {
    border: none;
    padding: 0 !important;
}
.table-comparison .cell.label {
    padding: 15px !important;
    font-family: 'Prompt',sans-serif;;
}
.table-wrapper.comparison {
    border: none;
}
.table-comparison tr {
    border-bottom: 1px solid #ccc;
}
.table-comparison .product-item-actions button.tocart:hover span:before {
    filter: brightness(10);
}
.table-comparison .product-item-actions button.tocart span {
    display: flex;
    align-items: center;
    justify-content: center;
}
.table-comparison .product-item-actions button.tocart {
    padding: 0 10px 0 0 !important;
}
.table-comparison .product-item-actions button.tocart {
    padding: 8px 20px !important;
    line-height: 1;
    margin: 0 10px;
}
.table-comparison .cell.product.info, .table-comparison .cell {
    position: relative;
    text-align: center;
}
.table-comparison .product-item-actions .actions-primary {
    display: inline-block;
    margin: 0 10px;
}
.table-comparison .product-item-name {
    font-size: 1.6rem;
}
.table-comparison .product-item-actions > * {
    display: block;
}
.table-comparison .product-item-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}



/* popup */
.cartquickpro-catalog_product-options .product-social-links {
    display: block;
    float: none;
}
.smcqp-actions .smcqp-btn, 
.smcqp-actions .smcqp-continue {
    background-color: #F7C9C9;
}
.smcqp-confirm .modal-header {
    position: relative;
}
.modal-popup .action-close {
    display: flex;
    align-items: center;
}
.message.success a {
    color: #000;
}
.message.success a:hover {
    color: #C4161C;
}
.amcart-confirm-block .product-options-bottom .control-qty {
    display: flex; 
}
.amcart-confirm-block .product-options-bottom input#qty {
    border-width: 1px 0;
    border-radius: 0;
    border-color: #EAEAEA;
    height: 40px;
}
.amcart-confirm-block .product-options-bottom .field {
    display: flex;
    align-items: center;
}
.amcart-confirm-block .product-options-bottom .label {
    margin: 0 10px 0 0;
}
#social-login-popup button.action:hover {
    background: #9C070C;
}
#social-login-popup button.action {
    background: #C4161C;
    color: #fff;
    border-radius: 8px;
}
.amsl-tablist .amsl-title .amsl-link {
    font-family: 'Prompt',sans-serif;;
    color: #000;
}
.amsl-tablist .amsl-title.active .amsl-link {
    color: #000;
    border-bottom: 1px solid #000;
}
.amsl-login-content .secondary .action.remind {
    color: #000;
}
.amsl-popup-block .amsl-close:hover, 
.amsl-popup-block .amsl-close:active {
    filter: brightness(0);
}
.am-photo-container .amcart-image-success {
    width: auto;
}
div#am-recaptcha-place-order {
    display: none;
}
.amcart-qty-wrap {
    align-items: center;
}
.amcart-qty-wrap>.amcart-control {
    background: transparent;
    border: 1px solid #EAEAEA;
    height: 40px;
}
.amcart-qty-wrap>.amcart-control:hover {
    background: #eee;
}
.amcart-qty-wrap>.amcart-input, 
.amcart-qty-wrap>.amcart-input.input-text.qty {
    margin: 0;
    border-width: 1px 0;
    border-radius: 0;
    border-color: #EAEAEA;
    height: 40px;
}
.amcart-qty-wrap>.amcart-control.-minus {
    border-radius: 3px 0 0 3px;
}
.amcart-qty-wrap>.amcart-control.-plus {
    border-radius: 0 3px 3px 0;
}
.amcart-qty-wrap>.amcart-control.-minus:before {
    content: '';
    background: url(../images/plus-minus.svg) no-repeat transparent;
    background-position: 7px -15px;
}
.amcart-qty-wrap>.amcart-control.-plus:before {
    content: '';
    background: url(../images/plus-minus.svg) no-repeat transparent;
    background-position: 7px 15px;
}
.fancybox-iframe {
    border-radius: 8px;
}
div#confirmBox a {
    font-family: 'Prompt',sans-serif;
}
.amcart-confirm-buttons .button {
    border-radius: 8px;
}



/* related/upsell/crossell */
.block.crosssell {
    width: 100%;
}
.related .title strong,
.upsell .title strong,
.crosssell .title strong {
    font-weight: 400;
    font-size: 2rem;
}
.block.crosssell .product-item-info {
    width: 100%;
}
.related .owl-carousel.owl-theme .owl-dots .owl-dot,
.upsell .owl-carousel.owl-theme .owl-dots .owl-dot,
.crosssell .owl-carousel.owl-theme .owl-dots .owl-dot {
    background-color: #F2F2F2;
    margin: 0;
}
.related .owl-carousel.owl-theme .owl-dots .owl-dot.active,
.upsell .owl-carousel.owl-theme .owl-dots .owl-dot.active,
.crosssell .owl-carousel.owl-theme .owl-dots .owl-dot.active {
    background-color: #D2D2D2;
}
.related .owl-carousel.owl-theme .owl-dots,
.upsell .owl-carousel.owl-theme .owl-dots,
.crosssell .owl-carousel.owl-theme .owl-dots {
    bottom: 0;
}
.related .owl-carousel.owl-theme .owl-nav .owl-prev:before,
.upsell .owl-carousel.owl-theme .owl-nav .owl-prev:before,
.crosssell .owl-carousel.owl-theme .owl-nav .owl-prev:before {
    background: url(../images/icon-arrow-left.svg) no-repeat 0 0/20px auto;
    filter: brightness(0);
}
.related .owl-carousel.owl-theme .owl-nav .owl-prev:hover:before,
.upsell .owl-carousel.owl-theme .owl-nav .owl-prev:hover:before,
.crosssell .owl-carousel.owl-theme .owl-nav .owl-prev:hover:before {
    filter: brightness(0.5);
}
.related .owl-carousel.owl-theme .owl-nav .owl-next:before,
.upsell .owl-carousel.owl-theme .owl-nav .owl-next:before,
.crosssell .owl-carousel.owl-theme .owl-nav .owl-next:before {
    background: url(../images/icon-arrow-right.svg) no-repeat 0 0/20px auto;
    filter: brightness(0);
}
.related .owl-carousel.owl-theme .owl-nav .owl-next:hover:before,
.upsell .owl-carousel.owl-theme .owl-nav .owl-next:hover:before,
.crosssell .owl-carousel.owl-theme .owl-nav .owl-next:hover:before {
    filter: brightness(0.5);
}
.crosssell .owl-theme .owl-nav [class*='owl-'] {
    top: 20%;
}
.related .owl-carousel.owl-theme .owl-nav .owl-prev,
.upsell .owl-carousel.owl-theme .owl-nav .owl-prev,
.crosssell .owl-carousel.owl-theme .owl-nav .owl-prev {
    left: -10px;
}
.related .owl-carousel.owl-theme .owl-nav .owl-next,
.upsell .owl-carousel.owl-theme .owl-nav .owl-next,
.crosssell .owl-carousel.owl-theme .owl-nav .owl-next {
    right: -25px;
}
.related .products-grid .product-item-actions,
.upsell .products-grid .product-item-actions,
.crosssell .products-grid .product-item-actions {
    padding: 15px 0 0;
}
.amrelated-grid-wrapper {
    grid-row-start: 3;
    grid-column-start: 1;
    grid-row-end: 3;
    grid-column-end: 3;
}
.block.widget.amrelated-grid-wrapper .product-items .product-item {
    width: 100%;
}
.amrelated-grid-wrapper .slick-slider .slick-arrow {
    top: 40%;
    background-color: rgba(0, 0, 0, 0.6) !important;
    height: 50px;
    border-radius: 0;
    opacity: 0;
}
.amrelated-grid-wrapper .product-items.slick-slider:hover .slick-arrow {
    opacity: 1;
}
.amrelated-grid-wrapper .slick-slider .slick-arrow:hover {
    background-color: rgba(0, 0, 0, 0.4) !important;
}
.amrelated-grid-wrapper .product-items.slick-slider .slick-slide .product-item {
    max-width: 100%;
}




/* cart page */
.table>thead>tr>th {
    font-family: 'Prompt',sans-serif;;
    font-weight: 400;
    border: none;
}
.checkout-cart-index .page-main {
    padding-left: 15px;
    padding-right: 15px;
}
.abs-toggling-title:after, 
.abs-cart-block>.title:after, 
.minicart-items .product .toggle:after, 
.abs-discount-block .block>.title:after, 
.cart-summary .block>.title:after, 
.paypal-review-discount .block>.title:after, 
.cart-discount .block>.title:after,
.cart-container .cart-summary .block>.title:after {
    right: 20px;
    top: 10px;
}
.cart-container .checkout-methods-items {
    margin-top: 0;
}
.cart .product-item-name a {
    font-size: 1.5rem;
    display: inline-block;
}
.table tbody+tbody {
    border-top: 1px solid #dee2e6;
}
.cart.table-wrapper .actions-toolbar>.action-edit, 
.cart.table-wrapper .actions-toolbar>.action-delete {
    position: unset;
    margin: 0 5px;
}
.cart-container .cart.main.actions .action {
    font-family: 'Prompt',sans-serif;
    font-weight: 400;
    display: inline-block;
    color: #fff;
    border-radius: 8px;
}
.cart-container .cart.main.actions .action:hover {
    background-color: #9C070C !important;
    color: #fff;
}
.cart-container .cart-summary .summary.title {
    font-family: 'Prompt',sans-serif;;
    font-weight: 500;
}
form#discount-coupon-form .label {
    display: none;
}
#shopping-cart-table .price-including-tax .price, 
#shopping-cart-table .price-excluding-tax .price {
    font-weight: 500;
    color: #000;
    font-family: 'Prompt',sans-serif;;
}
.grand.totals {
    font-family: 'Prompt',sans-serif;;
}
#block-discount-heading {
    color: #000;
    font-family: 'Prompt',sans-serif;;
}
form#discount-coupon-form button.action.apply {
    background: #C4161C;
    color: #fff;
    box-shadow: none;
    border-radius: 8px;
    margin: 0 0 0 10px;
}
form#discount-coupon-form button.action.apply:hover {
    background: #9C070C;
    color: #fff;
}
.cart-container .form-cart .actions.main {
    text-align: center;
}
.cart-container .checkout-methods-items .action.primary.checkout {
    font-size: 1.7rem !important;
    background: #111;
}
.cart.table-wrapper .action {
    position: unset;
    margin: 0 5px;
    display: flex;
    align-items: center;
}
#shopping-cart-table .actions-toolbar .towishlist:before {
    content: '';
    background: url(../images/icon/icon-wishlist.svg) no-repeat center center/18px auto;
    width: 18px;
    height: 18px;
    display: inline-block;
}
#shopping-cart-table .actions-toolbar .towishlist:hover:before {
    background: url(../images/icon/icon-wishlist-1.svg) no-repeat center center/18px auto;
}
#shopping-cart-table .actions-toolbar .towishlist span {
    display: none;
}
.cart.table-wrapper .actions-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.cart.table-wrapper .actions-toolbar>.action-edit:before, 
.cart.table-wrapper .actions-toolbar>.action-delete:before {
    color: #B6B6B6;
}
.cart.table-wrapper .actions-toolbar>.action-edit:hover:before, 
.cart.table-wrapper .actions-toolbar>.action-delete:hover:before {
    color: #ED3F3F;
}



/* checkout page */
.checkout-container.am-checkout .authentication-wrapper {
    margin-top: -60px;
}
.checkout-payment-method .payment-methods .actions-toolbar .primary {
    background: #C4161C;
}
.checkout-payment-method .payment-methods .actions-toolbar .primary:hover {
    background: #9C070C;
}
.checkout-index-index .checkout-header {
    width: 100%;
}
.checkout-index-index .checkout-header .title {
    font-size: 2.4rem;
    text-transform: uppercase;
}
.checkout-index-index .checkout-container.am-checkout {
    background: transparent;
    padding: 0;
}
.checkout-index-index .checkout-header .description {
    font-size: 1.4rem;
    font-family: 'Prompt',sans-serif;;
}
.checkout-container .authentication-wrapper button {
    background-color: #000;
    color: #fff;
    border-radius: 8px;
}
.checkout-container .authentication-wrapper button:hover {
    background-color: rgb(0 0 0 / 70%);
}
.opc-wrapper .step-title, 
.checkout-container .checkout-payment-method .step-title {
    font-weight: 400;
    font-size: 2rem;
    font-family: 'Prompt',sans-serif;;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.opc-block-summary .items-in-cart>.title strong {
    font-weight: 400;
    font-size: 1.6rem;
    font-family: 'Prompt',sans-serif;;
}
.opc-wrapper .form-shipping-address {
    background: transparent;
    border-bottom: none;
}
.opc-wrapper .form-login {
    background: transparent;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ccc;
}
.opc-wrapper .methods-shipping {
    background: transparent;
    border-bottom: none;
    margin: 0;
    padding: 0;
}
.methods-shipping .table-checkout-shipping-method .amcheckout-items .col-carrier {
    display: none;
}
.checkout-index-index .checkout-block {
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px 0 rgb(0 0 0 / 10%);
    margin: 0 0 15px;
    border-radius: 8px;
}
.opc-block-summary {
    border-radius: 7px;
}
.opc-estimated-wrapper {
    margin: 0 0 15px;
    padding: 10px;
    border: none;
}
fieldset#customer-email-fieldset,
fieldset#customer-email-fieldset > .field {
    margin: 0 !important;
}
#shipping-new-address-form div.field {
    width: 50%;
    display: inline-block;
}
#shipping-new-address-form div.field[name$=".company"],
#shipping-new-address-form div.field[name$=".street"],
#shipping-new-address-form div.field[name$=".telephone"] {
    width: 100%;
}
#payment hr {
    display: none;
}
.opc-payment .amcheckout-title {
    margin: 0 15px;
}
.opc-payment .amcheckout-title .step-title {
    padding: 0 0 10px;
}
form#co-payment-form .fieldset>br {
    display: none;
}
.checkout-payment-method .payment-option {
    margin: 0;
}
.methods-shipping .table-checkout-shipping-method .amcheckout-items td {
    padding: 10px;
    width: auto;
    flex-grow: unset;
    flex-basis: auto;
    border: none;
}
#discount-form button.action.action-apply {
    background: #F7C9C9;
    color: #000;
    box-shadow: none;
}
#discount-form button.action.action-apply:hover {
    background: #000;
    color: #fff;
}
.checkout-index-index .checkout-block:hover {
    box-shadow: 2px 2px 10px 0 rgb(0 0 0 / 10%);
}
#shipping .fieldset.address div[name*=".street"] {
    width: 100%;
}
.checkout-index-index .opc-wrapper.am-opc-wrapper .checkout-billing-address .billing-address-same-as-shipping-block {
    padding: 0;
}
.item-options {
    display: flex;
    align-items: center;
}
.item-options .field.configurable {
    display: flex;
    align-items: center;
}
.item-options .field.configurable .label {
    margin-right: 10px;
}
.checkout-index-index .nav-sections {
    display: block;
}
.checkout-index-index .opc-block-summary .minicart-items .delete {
    border: none;
}


/* minicart */
.minicart-wrapper .block-minicart {
    width: 290px !important;
    left: unset !important;
    right: 0 !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
}
.minicart-wrapper {
    margin: 0;
    display: flex;
    align-items: center;
    color: #727272;
    font-family: 'Prompt',sans-serif;;
}
.minicart-wrapper .action.showcart .text {
    margin: 0 5px 0 0;
    display: none;
    font-size: 1.6rem;
    position: unset;
    overflow: visible;
    height: auto;
    width: auto;
    font-family: 'Prompt',sans-serif;;
    color: #727272;
}
.minicart-wrapper .action.showcart:hover .text {
    color: #F7C9C9;
}
.block-minicart .subtotal {
    border: none;
    font-family: 'Prompt',sans-serif;;
}
.block-minicart .block-content>.actions>.primary {
    margin: 0;
}
.block-minicart .block-content>.actions {
    padding: 0 20px 20px;
}
.block-minicart .minicart-items .product-item-details .price-container {
    position: unset;
}
.block-minicart .minicart-items .product-item-details .product.actions .action.edit {
    display: inline-block;
}
.block-minicart .minicart-items-wrapper {
    border: solid #ccc;
    border-width: 1px 0;
    margin: 0 -15px 15px;
}
.block-minicart .block-content>.actions a {
    background-color: #000;
    font-weight: 400;
    font-size: 1.5rem;
    font-family: 'Prompt',sans-serif;;
    color: #fff;
    border-radius: 8px;
}
.block-minicart .block-content>.actions a:hover {
    background-color: #C4161C;
    color: #fff;
}
.minicart-wrapper .product .actions {
    display: flex;
    align-items: center;
    margin: -28px 0 0;
    float: right;
    line-height: 1;
}
.block-minicart .minicart-items .product-item-details .product.actions .action.delete:after {
    content: '\e604';
    position: unset;
    font-family: 'luma-icons';
    font-size: 18px;
    color: #757575;
}
.minicart-items .product-item-details .details-qty {
    display: inline-block;
}
.block-minicart #btn-minicart-close {
    display: block !important;
}
.block-minicart #btn-minicart-close:hover:before,
.minicart-items .action.edit:hover:before, 
.block-minicart .minicart-items .product-item-details .product.actions .action.delete:hover:after {
/*    color: #F7C9C9;*/
}
.minicart-wrapper .action.showcart:before,
.minicart-wrapper .action.showcart.active:before {
    content: '';
    background: url(../images/icon/icon-cart.svg) no-repeat 0 0/30px auto;
    width: 30px;
    height: 30px;
}
.minicart-wrapper .action.showcart:hover:before, 
.minicart-wrapper .action.showcart.active:hover:before {
    opacity: 0.6;
}
.minicart-wrapper .action.showcart,
.minicart-wrapper .action.showcart.active {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}
.minicart-wrapper .action.showcart .counter.qty {
    background: #C4161C;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    min-width: 20px;
    position: absolute;
    right: -3px;
    top: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    box-shadow: 0px 1px 3px 0px rgba(196, 22, 28, 0.53);
}
.minicart-wrapper .action.showcart .counter.qty.empty {
    display: flex;
}
.minicart-wrapper .action.showcart .counter-number {
    text-shadow: none;
    line-height: 1;
}
.minicart-wrapper .counter:before,
.minicart-wrapper .counter:after {
    content: '';
}
#mini-cart .product.options.list > * {
    float: none;
}
.block-minicart .minicart-items .product-item-details .product-item-name a {
    color: #000;
    font-family: 'Prompt',sans-serif;;
}
.block-minicart .minicart-items .product-item-details .product-item-name a:hover {
    color: #C4161C;
}
button#top-cart-btn-checkout {
    font-size: 1.6rem !important;
}
.block-minicart .minicart-items .product-item-details .product-item-pricing {
    position: unset;
}
.minicart-wrapper .action .label {
    display: none;
}
.cart-wrapper .block-minicart .minicart-items .product-item-details .price-container .price {
    color: #000;
    font-weight: 500;
}


/* success order page */
.block-order-details-view .box-title {
    border-bottom: 1px solid #000;
}



/* blog page */
.sidebar .block-tagclaud span.largest {
    background-color: #eee;
    padding: 5px 10px;
    margin: 0 5px 5px 0;
    font-size: 1.5rem;
    display: inline-block;
}
.blog-index-index .post-content .post-description .post-ftimg-hld {
    float: none;
    width: 100%;
    max-width: 100%;
}
.blog-index-index .post-list-wrapper .post-list .post-header .post-title-holder .post-title {
    line-height: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.blog-index-index .post-list .post-text-hld {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-index-index .post-list-wrapper .post-list .post-header .post-title-holder .post-title a {
    color: #000;
}
.blog-index-index .post-list-wrapper .post-list .post-header .post-title-holder .post-title a:hover {
    color: #F7C9C9;
}
.post-view .post-content .post-description .post-ftimg-hld {
    float: none;
    max-width: 100%;
    margin: 0 0 30px;
}
#post-comments * {
    font-family: 'Prompt',sans-serif;;
}
#post-comments * {
    font-family: 'Prompt',sans-serif;;
    border-radius: 3px;
}
.sidebar .blog-search .actions .action.search {
    background: #C4161C;
    border-radius: 0 8px 8px 0;
}
.sidebar .blog-search .actions .action.search:hover {
    background: #9C070C;
}
.sidebar .widget.block-categories ul li a {
    font-weight: 400;
}
.addthis_toolbox .at-share-btn-elements .at-label {
    display: none;
}
.addthis_toolbox .at-share-btn-elements .at-icon-wrapper,
.addthis_toolbox .at-share-btn-elements .at-icon-wrapper svg {
    width: 25px !important;
    height: 25px !important;
}
.post-list .post-holder .post-header .addthis_toolbox {
    padding: 0;
}
.blog-page-list .post-holder {
    margin-bottom: 15px;
}
.post-list .post-header .post-title-holder {
    margin: 0 0 10px;
}
.sidebar .block-tagclaud span.largest:hover {
    background-color: #F7C9C9;
}
.sidebar .block-tagclaud span.largest a:hover {
    color: #000;
}
.blog-page .sidebar.sidebar-additional .block {
    margin-bottom: 15px;
}
.post-list .post-header .post-title {
    max-width: 100%;
}
.block-list-posts .post-item-link:hover {
    color: #000;
    text-decoration: underline;
}
.post-read-more a.post-read:hover {
    background-color: #000 !important;
    border-color: #000 !important;
}
.blog-page-list .post-list .post-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 63px;
}
.blog-post-view ._post-view .post-featured-image {
    display: none;
}
.sidebar .widget.blog-search .action.search:before {
    background-size: 45px;
    width: 35px;
    height: 35px;
    background-position: -5px -13px;
}
.post-bottom .post-nextprev-hld {
    display: flex;
    justify-content: space-between;
}
.post-bottom .post-nextprev-hld.clearfix::after {
    display: none;
}
.post-read-more a.post-read {
    border-radius: 8px;
}



/* footer */
.page-footer {
    background: #030407;
    padding: 0;
    margin: 0;
    color: #fff;
    font-family: 'Prompt',sans-serif;;
}
.footer-content a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
}
.footer-content a:hover {
    color: #C4161C;
}
.footer-content {
    padding: 30px 0;
}
.footer-content h3 {
    font-weight: 400;
    margin-bottom: 15px;
}
.f-about > p {
    line-height: 2;
}
.f-links li {
    line-height: 2.5;
}
.f-logo .image {
    border-bottom: 1px solid rgb(255 255 255 / 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.f-logo .image span {
    font-size: 1.5rem;
    margin: 5px 0 0 0;
}
.f-about .social img {
    width: 20px;
    margin: 0 25px 15px 0;
}
.f-links .row > div:not(:last-child) {
    margin-bottom: 10px;
}
.footer-content .social a:hover {
    opacity: 0.8;
}



/* copyright */
.footer-bottom.copy-right {
    text-align: center;
    padding: 5px;
    background-color: #C4161C;
}
.copyright-footer a {
    color: #fff;
}
.tsd-logo img {
    filter: brightness(1);
}
.copyright-footer {
    color: #fff;
}




@media (max-width: 768px){ 
    
    /* search box dropdown */
    .search-dropdown .dropdown-toggle {
        display: none;
    }
    .search-dropdown .dropdown-menu {
        display: block;
        position: unset;
        background-color: transparent;
        width: 100%;
    }
    
    /* product view */
    .product.data.items>.item.content {
        margin-top: 0 !important;
    }

}



@media (min-width: 480px){
    .hidden-xs {
        display: block;
    }
    .visible-xs {
        display: none;
    }
}


@media (min-width: 768px){
    
    /* catalog product grid */
    .page-products .products.wrapper.products-grid .item {
        width: 33.3333333333%;
    }


    
    /* catalog product list */
    .products-list .product-item-photo {
        max-width: 300px;
        width: 25%;
        padding-bottom: 0;
    }
    
    /* product view */
    .catalog-product-view .column.main {
        display: inline-block;
    }
    .page-layout-1column .product.media {
        width: 45%;
        float: left;
    }
    .page-layout-1column .product-info-main {
        width: 50%;
        float: right;
    }
    .table-wrapper .col.label {
        width: auto;
        padding: 5.5px 30px 10px 0 !important;
    }
    .field.review-field-nickname {
        width: 50%;
        display: inline-block;
        padding: 0 15px 0 0;
    }
    .field.review-field-summary {
        width: 50%;
        display: inline-block;
        padding: 0 0 0 15px;
    }
    .review-field-ratings div#product-review-table {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    
    /* minicart */
    .minicart-wrapper .block-minicart {
        width: 345px !important;
    }
    
    
    /* cart page */
    .cart-container .form-cart .actions.main {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }
    
    
    /* related/upsell/crossell */
    .crosssell .owl-theme .owl-nav [class*='owl-'] {
        top: 40%;
    }
    
    /* account page */
    .account.page-layout-2columns-left .sidebar-main .block.block-collapsible-nav {
        position: unset;
        background-color: #f5f5f5;
    }
    .account.page-layout-2columns-left .sidebar-main .block-collapsible-nav-title {
        padding: 10px 30px;
    }
    
    /* wishlist page */
    .form-wishlist-items .products-grid.wishlist .product-items li.product-item {
        width: calc((100% / 3) - 20px) !important;
    }
    .form-wishlist-items .products-grid.wishlist .product-item-info > * {
        margin: 0;
    }

    
    /* blog page */
    .blog-index-index .post-list-wrapper .post-list .post-header .post-title-holder .post-title {
        padding: 0;
    }
    .blog-index-index .post-list-wrapper .post-list .post-header .post-title-holder .addthis_toolbox {
        padding-top: 5px;
    }
    .blog-index-index .post-list-wrapper .post-list .post-title-holder {
        margin: 0 0 10px;
    }


    
    
    /* header */
    .main-header .search-box .dropdown-toggle.btn-primary, 
    .main-header .search-box .dropdown-toggle.btn-primary:hover, 
    .main-header .search-box .dropdown-toggle.btn-primary:focus, 
    .main-header .search-box .dropdown-toggle.btn-primary:active {
        padding: 0 15px !important;
    }



    
    /* breadcrumbs */
    .catalog-product-view .breadcrumbs {
        margin: auto;
        max-width: 750px;
    }
    
    /* container */
    .page-main {
        max-width: 750px;
        margin: auto;
    }
}



@media (min-width: 769px){ 
    
    /* header */
    .page-header .panel.wrapper {
        display: none;
    }
    .minicart-wrapper .action.showcart:before, 
    .minicart-wrapper .action.showcart.active:before {
        margin: 0;
    }
    .compare-header {
        display: block;
    }

    /* main menu desktop */
    .ammenu-nav-sections .ammenu-items-list .ammenu-item a {
        font-size: 1.3rem;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item:first-child a:hover,
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item:first-child a.-current:hover {
        color: #C4161C !important ;
    }
    .ammenu-submenu-block.-builder.-root>.ammenu-items-list>.ammenu-item>.ammenu-link {
        font-size: 1.3rem;
        font-weight: 400;
    }
    .ammenu-submenu-block.-builder.-root>.ammenu-items-list>.ammenu-item:last-child>.ammenu-link {
        padding-bottom: 0;
    }
    .ammenu-nav-sections.-topmenu.-sticky .ammenu-main-container {
        position: unset;
    }
    .navigation {
        background: transparent;
    }
    .navigation ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }
    .nav-sections {
        margin: 0;
        background: transparent;
    }
    .navigation .level0 {
        margin: 0;
        color: #fff;
    }
    .navigation .level0>.level-top {
        line-height: 1;
    }
    .sections.nav-sections .level0.level-top>a {
        color: #fff;
        padding: 0 5px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
    .sections.nav-sections .category-item a {
        padding: 0 15px;
        color: #000;
        font-size: 1.2rem;
        font-family: 'Prompt',sans-serif;;
        text-transform: uppercase;
    }
    .sections.nav-sections .level0.ui-menu-item.active > a,
    .sections.nav-sections .level0.ui-menu-item.has-active > a,
    .sections.nav-sections .level0.ui-menu-item:hover > a {
        color: #F7C9C9;
    }
    .sections.nav-sections .submenu .category-item.active > a,
    .sections.nav-sections .submenu .category-item.has-active > a,
    .navigation .category-item .submenu .ui-menu-item:hover > a {
        color: #F7C9C9;
    }
    .sections.nav-sections .category-item.active > a,
    .sections.nav-sections .category-item a:hover {
        border: none;
    }
    .navigation .category-item .submenu .ui-menu-item {
        padding: 5px 10px;
    }
    .navigation .category-item .submenu {
        padding: 10px 0;
    }
    .sections.nav-sections .category-item .submenu a:hover {
        background: transparent;
    }
    .navigation li.level0.parent {
        padding-right: 10px;
    }
    .navigation .level0.active>a:not(.ui-state-active), 
    .navigation .level0.has-active>a:not(.ui-state-active),
    .navigation .level0.active>a.level-top,
    .navigation .level0.has-active>a.level-top {
        border: none;
    }
    .navigation .level0.parent>.level-top>.ui-menu-icon {
        right: 0;
    }
    .ammenu-submenu-block.-builder.-root .ammenu-link .ammenu-text {
        max-width: 100%;
        overflow: unset;
    }

    
    /* menu brands */
    .nav-3.category-item > a.ui-state-active+ul {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }

    
    /* login page */
    .login-container {
        display: flex;
    }
    .login-container .block-customer-login {
        margin: 0 15px 0 0;
    } 
    .login-container .block-new-customer {
        margin: 0 0 0 15px;
    }
    .login-container .block {
        width: 100%;
    }

    
    /* search box dropdown */
    .search-dropdown .dropdown-toggle:before {
        content: '';
        background: url(../images/icon-search.svg) no-repeat center center/ 23px auto transparent;
        width: 23px;
        height: 23px;
        display: block;
    }
    .search-dropdown .dropdown-toggle:after {
        display: none;
    }
    .search-dropdown .dropdown-toggle {
        padding: 0;
    }
    .search-dropdown .dropdown-menu.show {
        width: 400px;
        right: 0;
        left: unset !important;
        transform: none !important;
        top: 100% !important;
        padding: 0;
    }
    
    
    /* account page */
    .account.page-layout-2columns-left .sidebar-main,
    .account.page-layout-2columns-left .sidebar-additional {
        width: 25% !important;
        margin: 0 0 15px;
    }
    .account.page-layout-2columns-left .column.main {
        width: 75% !important;
        padding-left: 15px;
    }


    
}


@media (min-width: 850px){
    
    

    
    /* related/upsell/crossell */
    .block.crosssell {
        padding: 0;
    }
    
    /* checkout page */
    .opc-payment .amcheckout-title {
        margin: 0;
    }
    .checkout-index-index .opc-wrapper.am-opc-wrapper {
        padding: 20px 0;
    }
    

}


@media (min-width: 992px){
    
    
    
    /* catalog product list */
    .page-products .column.main .products-list .product-items {
        margin: 0;
        width: 100%;
    }
    
    /* cart page */
    .cart-container .form.form-cart {
        width: 70%;
    }
    
    /* checkout page */
    .checkout-index-index .opc-wrapper.am-opc-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 20px;
    }
    .checkout-index-index .opc-wrapper.am-opc-wrapper.layout-3columns .checkout-column {
        width: 100%;
    }
    
    /* filter product */
    .filter-title {
        display: none;
    }
    .filter-subtitle {
        display: block;
        position: static;
    }
    .filter.active .filter-options, .filter-options {
        background: transparent;
        clear: both;
        display: block;
        overflow: initial;
        position: static;
    }
    #layered-filter-block {
        display: block;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 8px;
    }
    .filter-options-item:last-child {
        border: none;
    }
    


    
    /* breadcrumbs */
    .catalog-product-view .breadcrumbs {
        max-width: 970px;
    }
    

    
    
    /* owl carousel */
    .owl-carousel.owl-theme:hover .owl-nav {
        opacity: 1;
        transition: 0.3s ease opacity;
    }

    
    
    /* layout */
    .page-layout-2columns-left .sidebar-main,
    .page-layout-2columns-right .sidebar-main {
        width: 27.833333%;
    }
    .page-layout-2columns-left .column.main,
    .page-layout-2columns-right .column.main {
        width: 72.166667%;
    }
    .page-layout-2columns-right .sidebar.sidebar-additional {
        width: 27.833333%;
        padding-left: 2%;
    }
    .page-layout-2columns-left .sidebar.sidebar-additional {
        width: 27.833333%;
        padding-right: 2%;
    }
    .page-products .columns {
        padding-top: 0;
        display: block;
    }
    
    
    
    /* container */
    .page-main {
        max-width: 970px;
    }
    
    
    /* footer */
    .footer-content {
        padding: 50px 0;
    }
    .f-links .row {
        justify-content: flex-end;
    }
    .f-links .row > div {
        max-width: 30.333333%;
    }
    .f-about .social img {
        margin: 0 15px 15px 0;
    }
    .f-links .row > div:not(:last-child) {
        margin-bottom: 0;
    }
}



@media (min-width: 1200px) {
    
    /* header */
    .header-content .right-content {
        display: flex;
        align-items: center;
    }
    .main-header .header-content {
        padding: 0;
    }
    .main-header .logo img {
        width: auto;
        margin: 0;
    }
    .main-header .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .header-content .toplinks-wrapper {
        display: block;
    }
    .cart-wrapper {
        position: unset;
    }
    .top-bar {
        display: block;
    }
    .top-bar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .currency .switcher-options.active ul {
        display: block;
        position: absolute;
        background-color: #fff;
    }
    .currency .switcher-options li {
        padding: 5px 10px;
    }
    .top-bar .switcher-trigger span:after {
        content: '';
        border-style: solid;
        border-width: 1px 1px 0 0;
        display: none;
        height: 8px;
        width: 8px;
        transform: rotate(135deg);
        margin-left: 3px;
        top: -2px;
        left: 3px;
        position: relative;
        transition: transform 0.15s linear;
    }
    .top-bar .switcher-trigger.active span:after {
        transform: rotate(315deg);
        top: 0;
    }
    .navigation-content {
        position: unset;
    }
    .header-content .right-content .icon-right {
        position: unset;
    }
    
    
    /* search box */
    .search-box .dropdown-search {
        left: -60px !important;
        transform: translate3d(810px, 72px, 0px) !important;
    }
    .amsearch-wrapper-block {
        margin: 0 15px 0 0;
    }
    .amsearch-input-wrapper .amsearch-input {
        width: 100%;
    }
    
    
    /* quick view */
    .product-item-info:hover .amquickview-hover {
        display: flex !important;
    }

    
    /* main menu desktop */
    .ammenu-menu-wrapper .ammenu-link {
        font-family: 'Prompt',sans-serif;;
    }
    .sections.nav-sections .category-item a {
        font-size: 1.6rem;
    }
    .sections.nav-sections .level0.level-top>a {
        font-size: 1.6rem;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link>p {
        padding: 0 10px;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item:last-child>.ammenu-link>p {
        border: none;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link,
    .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link {
        font-size: 1.25rem;
        padding: 35px 0 30px;
        border-bottom: 6px solid transparent;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link.-current,
    .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link.-current {
        border-bottom: 6px solid #C4161C;
    }
/*
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item:first-child>.ammenu-link.-current {
        color: #292f36 !important;
        border-bottom: 6px solid transparent;
        font-weight: 400 !important;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link:hover,
    .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link:hover,
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item:first-child>.ammenu-link.-current:hover {
        border-bottom: 6px solid #C4161C;
    }
*/
    .ammenu-nav-sections.-topmenu .ammenu-submenu-wrapper {
        padding: 20px 30px;
        width: 100% !important;
/*        border-radius: 0;*/
        font-family: 'Prompt',sans-serif;
        top: 75px;
        left: 0;
    }
    .ammenu-nav-sections .ammenu-title.-parent {
        margin: 0 0 10px;
    }
    .ammenu-category-tree .ammenu-list>.ammenu-item .ammenu-link {
        padding: 0 15px 15px !important;
    }
    .ammenu-category-tree .ammenu-item .ammenu-icon-block.-toggle {
        margin: 0 0 0 25px;
    }
    .ammenu-category-tree .ammenu-item .ammenu-icon-block.-toggle {
        margin: 0;
        position: absolute;
        right: -15px;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items {
        justify-content: center;
        position: unset;
    }
    .ammenu-category-tree .ammenu-title {
        font-weight: 400;
        font-size: 1.5rem !important;
    }
    .ammenu-category-columns .ammenu-column {
        padding-bottom: 10px;
    }
    

    
    /* catalog product grid */
     .page-products .products.wrapper.products-grid .item {
        width: 33.3333%;
    }
    .page-products .column.main .product-items {
        margin: 0 0 0 -12px;
        width: calc(100% + 24px);
    }
    .products-grid .product-item-info,
    .products-grid .product-item-info:hover {
        padding: 0 20px 20px 20px;
    }


    
    
    /* breadcrumbs */
    .catalog-product-view .breadcrumbs {
        max-width: 1140px;
    }
    
    /* sidebar catalog product */
    .page-layout-2columns-left .sidebar.sidebar-additional,
    .page-layout-2columns-right .sidebar.sidebar-additional {
        width: 24.833333%;
    }
    
    /* wishlist page */
    .form-wishlist-items .products-grid.wishlist .product-items li.product-item {
        width: calc((100% / 4) - 20px) !important;
    }
    
    
    /* checkout page */
    .checkout-index-index .opc-wrapper.am-opc-wrapper {
        grid-gap: 30px;
    }
    
    
    /* related/crossell/upsell */
    .block.related .product-item-details {
        position: unset;
    }
    .related .product-item-info .product-item-actions,
    .upsell .product-item-info .product-item-actions, 
    .crosssell .product-item-info .product-item-actions {
        position: absolute;
        top: 0;
        right: 0;
        left: unset;
        margin: 0;
        text-align: center;
        box-shadow: none;
        background: transparent;
        border: none;
        opacity: 0;
        transform: scale(0);
        -moz-transform: scale(0);
        -webkit-transform: scale(0);
        -ms-transform: scale(0);
        transition: 0.3s;
        -moz-transition: 0.3s;
        -webkit-transition: 0.3s;
        padding: 0;
        z-index: 1;
    }
    .related .product-item-info:hover .product-item-actions,
    .upsell .product-item-info:hover .product-item-actions,
    .crosssell .product-item-info:hover .product-item-actions {
        opacity: 1;
        transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
    }

    
    
    /* screen */
    .d-xl-none {
        display: none!important;
    }
    .d-xl-block {
        display: block!important;
    }

    
    
    /* layout */
    .page-layout-2columns-left .sidebar-main,
    .page-layout-2columns-right .sidebar-main{
        width: 24.833333%;
    }
    .page-layout-2columns-left .column.main,
    .page-layout-2columns-right .column.main {
        width: 75.166667%;
    }
    
    /* container */
    .container {
        max-width: 1140px !important;
    }
    .page-main {
        max-width: 1140px;
        padding: 30px 0;
    }
    .page-products .page-main {
        padding: 0 0 30px;
    }
    
    /* owl carousel */
    .owl-carousel.owl-theme .owl-dots {
        bottom: 45px;
    }

    
    /* footer */
    .f-about .social img {
        margin: 0 25px 0 0;
    }
}


@media (min-width: 1400px) {
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link,
    .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link {
        font-size: 1.25rem;
        padding: 36px 0 30px;
        border-bottom: 6px solid transparent;
    }
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link, .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link {
        font-size: 1.5rem;
    }
    
    .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link>p {
        padding: 0 10px;
    }
    
    
    /* header */
    .welcome {
        display: block;
    }
    
    
    /* search box */
    .search-box .dropdown-search {
        transform: translate3d(1035px, 72px, 0px) !important;
    }
    .amsearch-wrapper-block {
        margin: 0 30px 0 0;
    }
    .amsearch-input-wrapper {
        max-width: 75%;
    }
    .amsearch-input-wrapper .amsearch-input {
        width: 100%;
    }
    
    
    
    /* main menu desktop */
    .sections.nav-sections .level0.level-top>a {
        padding: 0 20px;
    }
    

    
     /* breadcrumbs */
    .catalog-product-view .breadcrumbs {
        max-width: 1380px;
    }
    
    /* container */
    .container {
        max-width: 1380px !important;
    }
    .page-main {
        max-width: 1380px;
    }

}



/* hide add-to-cart and out-of-stock buttons in search popup */
.amsearch-result-section .action.tocart,
.amsearch-result-section .action-primary.tocart,
.amsearch-result-section .stock.unavailable,
.amsearch-result-section .product-item-actions {
    display: none !important;
}

/* search popup: limit height and enable scroll on product list */
.amsearch-products-section .amsearch-product-list {
    max-height: 520px;
    overflow-y: auto;
}

/* search bar wrapper full width */
.main-header .header-search .amsearch-wrapper-block {
    width: 70% !important;
}

/* search popup: 2 column grid */
.amsearch-products-section .amsearch-product-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.amsearch-products-section .amsearch-item {
    width: 100% !important;
    box-sizing: border-box;
}

/* CLS fix: reserve space for owl-carousel banner before JS init */
.slidershow-home.owl-carousel:not(.owl-loaded) {
    aspect-ratio: 1920 / 800;
    width: 100%;
    overflow: hidden;
}
@media (max-width: 767px) {
    .slidershow-home.owl-carousel:not(.owl-loaded) {
        aspect-ratio: 720 / 900;
    }
}

/* LCP fix: show first banner before owl-carousel JS init */
.slidershow-home.owl-carousel:not(.owl-loaded) {
    display: block !important;
}
.slidershow-home.owl-carousel:not(.owl-loaded) .item {
    display: none;
}
.slidershow-home.owl-carousel:not(.owl-loaded) .item:first-child {
    display: block !important;
}

/* CLS fix: reserve space for dynamic elements before JS/AJAX loads */

/* Menu wrapper - prevent layout shift when menu JS initializes */
.ammenu-menu-wrapper {
    min-height: 50px;
}

/* Sidebar additional - prevent shift when Amasty Shopby AJAX loads filters */
.page-layout-2columns-left .sidebar.sidebar-additional,
.page-layout-2columns-right .sidebar.sidebar-additional {
    min-height: 300px;
}

/* เดิม: .home-padding .widget.block.block-static-block { min-height: 41.67vw }
   ตั้งใจกัน layout shift ให้ banner เดียว (สัดส่วน 1920x800) แต่ selector กว้างเกิน
   ไปครอบทุก static block ใน .home-padding (บริการ, สินค้าแนะนำ, แบนเนอร์ LINE, Brands, Blog, Promotion ฯลฯ)
   ทำให้ทุก section เหลือพื้นที่ว่างสีขาวเกินจริงตาม min-height ที่ตั้งไว้สูงกว่าเนื้อหาจริงมาก
   ลบทิ้งทั้งหมด — ตัว hero slider จริงๆ (ที่มีสัดส่วนนี้) อยู่นอก .home-padding อยู่แล้ว ไม่ได้พึ่ง rule นี้
   ใช้ aspect-ratio ตรงตามภาพจริงแทนสำหรับ Home Contact Banner (2026-08-21) */
.home-banner img {
    width: 100%;
    height: auto;
}
.home-banner .hidden-xs img {
    aspect-ratio: 1920 / 315;
}
.home-banner .visible-xs img {
    aspect-ratio: 480 / 550;
}

/* Footer - prevent shift from lazy content above pushing it */
.page-footer {
    contain: layout;
}

/* ===== Language switcher (multi-language) ===== */
.main-header .header-top .icon-right .switcher-language {
    display: flex;
    align-items: center;
    height: 100%;
}
.switcher-language .switcher-options {
    position: relative;
}
.switcher-language .switcher-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 20px;
    transition: background-color .15s ease;
}
.switcher-language .switcher-trigger:hover,
.switcher-language .switcher-trigger.active {
    background-color: #f5f5f5;
}
.switcher-language .switcher-trigger strong {
    font-weight: 600;
    font-size: 1.4rem;
    font-family: 'Prompt', sans-serif;
    color: #333;
}
.switcher-language .switcher-trigger:after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    transition: transform .15s ease;
}
.switcher-language .switcher-trigger.active:after {
    transform: rotate(-135deg);
}
.switcher-language .switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 140px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 20;
}
.switcher-language .switcher-option {
    padding: 0;
}
.switcher-language .switcher-option a {
    display: block;
    padding: 9px 18px;
    font-size: 1.4rem;
    font-family: 'Prompt', sans-serif;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.switcher-language .switcher-option a:hover {
    background-color: #fdecec;
    color: #e8251e;
}
@media (max-width: 768px) {
    .switcher-language .switcher-trigger {
        padding: 6px 8px;
    }
    .switcher-language .switcher-trigger strong {
        font-size: 1.2rem;
    }
}



/* === top-bar links (added 2026-08-12) === */
.top-bar .top-message {
    font-size: 13px;
}
.top-bar .top-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.top-bar .top-links a {
    color: #fff;
    font-size: 13px;
    padding: 0 14px;
    line-height: 1;
    border-left: 1px solid rgba(255,255,255,.28);
    white-space: nowrap;
}
.top-bar .top-links a:first-child {
    border-left: 0;
}
.top-bar .top-links a:hover {
    color: #C4161C;
    text-decoration: none;
}


/* === swap search/menu layout (added 2026-08-12) === */
/* แถว 1: search อยู่กลาง ระหว่างโลโก้กับไอคอน */
.main-header .header-top .middle-content .header-search {
    padding: 0;
    border-top: 0;
    width: 100%;
}
.main-header .header-top .middle-content .search-box {
    width: 100%;
}

/* แถว 2: แถบเมนูเต็มความกว้าง
   ⚠️ สีพื้น/สีตัวอักษรของเมนู ตั้งที่ config `ammegamenu/color/*` ใน DB (Amasty ใส่เป็น inline style)
   ห้ามมา override ที่นี่ จะสู้กันเปล่าๆ — ตรงนี้ตั้งแค่พื้นหลังแถบให้เต็มจอเท่าฉากหลัง */
.main-header .header-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}
.main-header .header-nav .navigation-content {
    position: relative;
    z-index: 9;
}

/* ปรับขนาดตัวอักษร + ความสูงแถบเมนู (2026-08-12)
   ของเดิมในธีมตั้ง font-size:1.25rem / padding:35px 0 30px -> แถบสูง ~90px ตัวอักษรเล็ก
   selector ข้างล่างมี .main-header .header-nav นำหน้า -> specificity สูงกว่า ไม่ต้องใช้ !important */
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link,
.main-header .header-nav .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link {
    font-size: 1.5rem;
    padding: 12px 0;
    min-height: 0;
}
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link > p {
    padding: 0 14px;
}


/* === fix: header ถูก render ซ้ำ 2 ชุด ทับกัน (2026-08-13) ===
   ธีมดึง header.phtml เข้าไปใน block 'header links' ของ #ammenu-header-container อีกรอบ
   ตัวนั้นเป็น position:absolute; top:25px + z-index เท่ากับตัวจริง แต่อยู่หลังใน DOM
   -> ทับตัวจริงและ 'กินคลิก' (language-wrapper ในตัวซ้ำว่างเปล่า กดเปลี่ยนภาษาเลยไม่ทำงาน)
   แก้: ซ่อนตัวซ้ำ + ยกตัวจริง (ลูกตรงของ .page-wrapper) ขึ้นชั้นบน */
.page-wrapper > .main-header {
    z-index: 6;
}
#ammenu-header-container .top-bar,
#ammenu-header-container .main-header {
    display: none;
}


/* === ปุ่มเปลี่ยนภาษา: เพิ่มไอคอนลูกโลก + คำว่า 'ภาษา' ให้ผู้ใช้เข้าใจว่ากดแล้วเปลี่ยนภาษา (2026-08-13) ===
   เดิมโชว์แค่ชื่อภาษาปัจจุบัน ('ไทย') ผู้ใช้ไม่รู้ว่าเป็นปุ่มเปลี่ยนภาษา */
.switcher-language .switcher-trigger strong {
    display: flex;
    align-items: center;
    gap: 5px;
}
.switcher-language .switcher-globe {
    flex: 0 0 auto;
    color: #C4161C;
}
.switcher-language .switcher-label-text {
    color: #777;
    font-weight: 400;
}
@media (max-width: 1119px) {
    /* จอแคบ: เหลือไอคอนลูกโลก + ชื่อภาษา ตัดคำว่า 'ภาษา' ออกกันล้น */
    .switcher-language .switcher-label-text {
        display: none;
    }
}

/* dropdownDialog ของ Magento ห่อ <ul> ด้วย .ui-dialog.mage-dropdown-dialog ที่มีพื้นขาว+เส้นขอบของตัวเอง
   -> โผล่เป็นกล่องขาวเปล่าๆ คั่นระหว่างปุ่มกับรายการภาษา ทำให้ดูเหมือน 2 ชั้น
   ทำให้ wrapper ไม่มีตัวตนทางสายตา + static เพื่อให้ <ul> อ้างอิงตำแหน่งกับ .switcher-options ตามที่ CSS ตั้งใจ */
.switcher-language .mage-dropdown-dialog {
    position: static;
    min-width: 0;
    width: auto;
    left: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}


/* === top bar: เปลี่ยนจากพื้นดำเป็นพื้นขาว (2026-08-13) ===
   ธีมเดิมตั้ง .top-bar { background:#000; color:#fff } ที่บรรทัด ~345
   ต้อง override สีตัวอักษร/เส้นคั่นด้วย ไม่งั้นขาวบนขาวมองไม่เห็น */
.top-bar {
    background: #ffffff;
    color: #555;
    border-bottom: 1px solid #ececec;
    /* ต้องตั้ง position+z-index ให้ top-bar เอง ไม่งั้น dropdown ข้างในถึงจะมี z-index สูง
       ก็ยังแพ้ .main-header (sticky, z-index:6) เพราะ top-bar ไม่มี stacking context เป็นของตัวเอง
       ทำให้เมาส์เลื่อนลงมาไปโดนแถบค้นหาแทน dropdown ที่มองเห็นอยู่ */
    position: relative;
    z-index: 10;
}
.top-bar .top-message,
.top-message a {
    color: #555;
}
.top-bar .top-links a {
    color: #555;
    border-left-color: #dcdcdc;
}
.top-bar .top-links a:hover {
    color: #C4161C;
}


/* === แถบเมนู: บังคับให้อยู่บรรทัดเดียวเสมอ (2026-08-13) ===
   ชื่อหมวดภาษาอังกฤษยาวกว่าไทย ทำให้ตกบรรทัดที่ 2 บนจอ 1280-1366
   แก้หลัก = ย่อชื่อหมวดใน store EN แล้ว ส่วนนี้เป็นกันเหนียวเผื่อชื่อยาวขึ้นอีกในอนาคต */
.main-header .header-nav .ammenu-items.-root {
    flex-wrap: nowrap;
}
.main-header .header-nav .ammenu-items.-root > .ammenu-item > .ammenu-link .ammenu-text {
    white-space: nowrap;
}
@media (min-width: 1120px) and (max-width: 1400px) {
    /* จอแคบ: ลดระยะห่างระหว่างเมนูแทนการตกบรรทัด */
    .main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link > p {
        padding: 0 9px;
    }
}


/* === top-bar link มี submenu (dropdown) — เช่น เกี่ยวกับเรา (2026-08-13) ===
   ใช้ pure CSS hover ไม่ต้องพึ่ง JS เพราะ top-bar เป็น element เบาๆ อยู่แล้ว */
.top-bar .top-link-dropdown {
    position: relative;
    display: inline-block;
}
.top-bar .top-link-dropdown > a {
    padding-right: 20px;
    position: relative;
}
.top-bar .top-link-dropdown > a:after {
    content: ;
    position: absolute;
    right: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}
.top-bar .top-link-dropdown:hover > a:after {
    transform: rotate(-135deg);
    margin-top: -2px;
}
.top-bar .top-link-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    /* margin-top:0 (ไม่ใช่ 8px) — ช่องว่างระหว่างปุ่มกับกล่อง dropdown ทำให้เมาส์หลุด :hover
       ระหว่างเลื่อนลงมา ใช้ padding-top แทนเพื่อให้พื้นที่ hover ต่อเนื่องไม่ขาดตอน */
    margin-top: 0;
    padding: 14px 0 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 20;
}
.top-bar .top-link-dropdown {
    /* ขยายพื้นที่ hover ให้ครอบคลุมช่องว่างเหนือ dropdown ด้วย กันเมาส์หลุดตอนเลื่อนลง */
    padding-bottom: 14px;
    margin-bottom: -14px;
}
.top-bar .top-link-dropdown:hover .top-link-submenu {
    display: block;
}
.top-bar .top-link-submenu a {
    display: block;
    padding: 8px 16px;
    color: #555;
    border-left: 0 !important;
    white-space: nowrap;
    font-size: 1.3rem;
}
.top-bar .top-link-submenu a:hover {
    background: #f7f7f7;
    color: #C4161C;
}

/* brand name "ifm" must stay lowercase in the top menu, overriding .ammenu-text-block uppercase */
.ammenu-nav-sections a[href$="ifm-new.html"] .ammenu-text-block,
.ammenu-nav-sections a[href$="ifm-new.html"] .ammenu-text {
    text-transform: lowercase;
}

/* level-1 top-menu chevron removed per request — level-2+ submenu row arrows
   (the -has-children rule further below) are kept */

/* level-2+ submenu rows: arrow on the right when the category has its own
   children (real data, via -has-children class set from elem.elems in the
   Amasty_MegaMenu items_list.html theme override — not hardcoded per item) */
.ammenu-submenu-block .ammenu-items-list > .ammenu-item.-has-children > .ammenu-link {
    position: relative;
    padding-right: 18px;
}
.ammenu-submenu-block .ammenu-items-list > .ammenu-item.-has-children > .ammenu-link::after {
    content: "";
    position: absolute;
    right: 4px;
    /* .ammenu-link has padding-top:0 / padding-bottom:20px, so the text sits
       in the top half of the box (line-height 20px) — center on the text's
       own line-height, not the padded box */
    top: 10px;
    width: 6px;
    height: 6px;
    transform: translateY(-50%) rotate(-45deg);
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.55;
}

/* top-menu restyled as flat tabs with a red underline (matches mockup v3
   reference) — dropdown behaviour on hover is unchanged, this only restyles
   the level-1 bar itself */
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link > p {
    padding: 0 18px;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link {
    font-size: 1.4rem;
    letter-spacing: 0.01em;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link:hover,
.ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link:hover {
    border-bottom: 3px solid #C4161C !important;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link.-current,
.ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link.-current {
    border-bottom: 3px solid #C4161C !important;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link:hover .ammenu-text,
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link.-current .ammenu-text {
    color: #C4161C !important;
}
/* keep the same weight across idle/hover/active so the active tab never
   looks lighter than its siblings (each item also carries an inline
   font-weight from Amasty admin config, normally 700) */
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link,
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link:hover,
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link.-current {
    font-weight: 700 !important;
}


/* === Language switcher moved to top-bar, far right, flag style (2026-08-19) === */
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.switcher-language-flags {
    position: relative;
}
.switcher-language-flags .switcher-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(255,255,255,.28);
}
.switcher-language-flags .switcher-flag {
    font-size: 20px;
    line-height: 1;
}
.switcher-language-flags .switcher-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    padding: 6px 0;
    margin: 6px 0 0;
    list-style: none;
    z-index: 20;
    min-width: 140px;
}
.switcher-language-flags .switcher-dropdown.active,
.switcher-language-flags.active .switcher-dropdown {
    display: block;
}
.switcher-language-flags .switcher-option a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #333;
    white-space: nowrap;
}
.switcher-language-flags .switcher-option a:hover {
    background: #f5f5f5;
    color: #C4161C;
}
@media (max-width: 768px) {
    .top-bar .container {
        flex-wrap: wrap;
    }
    .top-bar-right {
        gap: 10px;
    }
}


/* === flag SVG sizing (2026-08-19) === */
.switcher-language-flags .switcher-flag {
    display: inline-flex;
    align-items: center;
}
.switcher-language-flags .flag-svg {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    display: block;
}
.switcher-language-flags .switcher-option a .flag-svg {
    width: 20px;
    height: 14px;
}


/* === top-level menu items: dropdown chevron (2026-08-19), same V style as language switcher === */
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link {
    position: relative;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link > p {
    padding-right: 20px;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
    opacity: 0.7;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item:hover > .ammenu-link::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}


/* === fix: flag too cramped / looked like hamburger icon (2026-08-19) === */
.top-bar-right {
    gap: 20px;
}
.switcher-language-flags .switcher-trigger {
    padding: 0 14px 0 20px;
    margin-left: 6px;
}
.switcher-language-flags .flag-svg {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.25);
    display: block;
}


/* === fix: top-level menu chevron overlapping text (2026-08-19) ===
   Earlier rule at .main-header .header-nav ... > .ammenu-link > p { padding: 0 14px; }
   has higher specificity than the plain .ammenu-nav-sections rule added before,
   so it always wins and there isn't enough reserved space for the arrow. */
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link > p {
    padding-right: 26px !important;
}
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link {
    position: relative;
}
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
    opacity: 0.7;
    pointer-events: none;
}
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item:hover > .ammenu-link::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}


/* === fix: add TH/EN/CN label next to flag, tighten menu chevron gap (2026-08-19) === */
.switcher-language-flags .switcher-trigger strong {
    display: flex;
    align-items: center;
    gap: 6px;
}
.switcher-language-flags .switcher-flag-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* tighten the top-level menu chevron: was too far from the text */
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link > p {
    padding-right: 18px !important;
}
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link::after {
    right: 3px;
}


/* === fix: real Thai flag proportions need slightly bigger icon to read clearly (2026-08-19) === */
.switcher-language-flags .flag-svg {
    width: 30px !important;
    height: 20px !important;
}


/* === เพิ่มขนาดตัวอักษรเมนูหมวดสินค้า (2026-08-19) === */
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link,
.main-header .header-nav .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link {
    font-size: 1.75rem !important;
}


/* === เพิ่มขนาดตัวอักษร submenu (level 2-3) ให้เข้าชุดกับ level-1 (2026-08-19) === */
.ammenu-submenu-block.-builder.-root > .ammenu-items-list > .ammenu-item > .ammenu-link {
    font-size: 1.5rem !important;
}


/* === fix: font-size lv3 ยังเล็กอยู่ (2026-08-19) — เดิมครอบแค่ direct child ของ submenu-block เอง ===
   ใช้ descendant selector (ไม่มี >) ให้ครอบคลุมทุกชั้นที่ซ้อนอยู่ใน submenu-block */
.ammenu-submenu-block.-builder.-root .ammenu-items-list .ammenu-item .ammenu-link {
    font-size: 1.5rem !important;
}


/* === เพิ่มขนาดตัวอักษร top-bar links (2026-08-19) === */
.top-bar .top-links a {
    font-size: 15px !important;
}


/* === Facebook fanpage widget: ย่อเป็นปุ่มลอยแบบ LINE แทนกล่องใหญ่ที่ทับ layout (2026-08-21) === */
.facebook-widget {
    text-align: right;
}
.facebook-floating {
    /* ย้ายมาฝั่งขวารวมกับ GetButton (2026-08-25) bottom คำนวณตอนรันโดยสคริปต์ใน absolute_footer */
    position: fixed;
    right: 24px;
    bottom: 260px;
    z-index: 999;
}
.facebook-floating-btn,
.facebook-floating-btn:focus,
.facebook-floating-btn:active,
.facebook-floating-btn:hover:focus {
    width: 62px !important;
    height: 62px !important;
    min-width: 0;
    border-radius: 50% !important;
    /* Facebook brand blue (2026-08-28) — เดิมแดง #C4161C เพราะโดน CSS กลางของธีมทับตอน focus
       ตอนนี้ pin !important ทุก state แล้วจึงใช้สีแบรนด์จริงได้ */
    background: #1877F2 !important;
    color: #fff;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    outline: none;
}
.facebook-floating-btn .fa-facebook {
    font-size: 30px;
    color: #fff;
}
.facebook-floating-btn:hover,
.facebook-floating-btn:focus:hover {
    background: #145DC4 !important;
}
.facebook-floating .facebook-widget {
    display: none;
    position: absolute;
    /* อยู่ขวาแล้ว ต้องกางไปทางซ้าย ไม่งั้นแผง 340px ล้นจอ */
    right: 0;
    left: auto;
    bottom: 74px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    padding: 8px;
    text-align: left;
}
.facebook-floating .facebook-widget.is-open {
    display: block;
}
.facebook-widget-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    z-index: 1;
}
.facebook-widget-close:hover {
    color: #000;
}
@media (max-width: 480px) {
    .facebook-floating .facebook-widget {
        left: -12px;
        max-width: calc(100vw - 48px);
    }
    .facebook-floating .facebook-widget .fb-page,
    .facebook-floating .facebook-widget iframe {
        max-width: 100%;
    }
}

/* เมนูหลักใช้ ExtraBold 800 + โหลด Prompt 700,800 (2026-08-25) */
.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item,.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link,.main-header .header-nav .ammenu-nav-sections.-topmenu .ammenu-items.-root>.ammenu-item>.ammenu-link>p,.main-header .header-nav .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link,.main-header .header-nav .ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root>.ammenu-item>.ammenu-link>p{font-weight:800 !important}


/* === ปิดช่องว่างระหว่างแถบเมนูกับ popup เมนูย่อย (2026-08-25) ===
   ของเดิมตรึง top:75px ตายตัว ถ้าความสูงแถบเมนูไม่ถึง 75px จะเหลือช่องว่าง
   เมาส์ลากผ่านช่องนั้นแล้ว popup หายทันที
   1) top:100% = ชิดขอบล่าง .ammenu-items เสมอ (เป็น position:relative อยู่แล้ว)
   2) สะพานโปร่งใส 12px กันเหลื่อมเศษพิกเซล */
@media (min-width: 1120px) {
    .ammenu-nav-sections.-topmenu .ammenu-submenu-wrapper {
        top: 100% !important;
    }
    .ammenu-nav-sections.-topmenu .ammenu-submenu-wrapper::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
        background: transparent;
    }
}

/* ============================================================
   งานปรับหน้าเว็บ 2026-08-21
   ข้อ 2: หมวดสินค้ายอดนิยม เลื่อนอัตโนมัติ
   ข้อ 6: คำอธิบายหมวดหมู่ ยุบ/ขยายได้
   ============================================================ */

/* --- ข้อ 2: ทำ grid หมวดสินค้าเดิมให้เลื่อนอัตโนมัติ --------------
   ใช้เนื้อหาจาก CMS block tsd_home_categories เดิม
   แอดมินแก้รูป/ลิงก์ที่เดิม ไม่ต้องดูแลสองที่ */
.home-categories-v2 .cat-grid.owl-carousel {
    display: block;
}
.home-categories-v2 .cat-grid.owl-carousel .owl-stage {
    display: flex;
}
.home-categories-v2 .cat-grid.owl-carousel .owl-item {
    display: flex;
}
.home-categories-v2 .cat-grid.owl-carousel .cat-card {
    width: 100%;
}
.home-categories-v2 .cat-grid.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 24px;
}
.home-categories-v2 .cat-grid.owl-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #dcdcdc;
    display: block;
    border-radius: 50%;
    transition: background .2s ease;
}
.home-categories-v2 .cat-grid.owl-carousel .owl-dot.active span {
    background: #FF5A1F;
}

/* --- ข้อ 6: คำอธิบายหมวดหมู่ ยุบ/ขยาย ------------------------- */
.category-description-collapsible {
    position: relative;
}
.category-description-collapsible .category-description-inner {
    max-height: 190px;
    overflow: hidden;
    position: relative;
    transition: max-height .35s ease;
}
.category-description-collapsible .category-description-inner:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 90%);
    pointer-events: none;
}
.category-description-collapsible._expanded .category-description-inner {
    max-height: 4000px;
}
.category-description-collapsible._expanded .category-description-inner:after {
    display: none;
}
.category-description-toggle {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 20px;
    padding: 8px 22px;
    background: #fff;
    border: 1px solid #C4161C;
    border-radius: 30px;
    color: #C4161C;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.category-description-toggle:hover {
    background: #C4161C;
    color: #fff;
}
.category-description-collapsible .text-less {
    display: none;
}
.category-description-collapsible._expanded .text-more {
    display: none;
}
.category-description-collapsible._expanded .text-less {
    display: inline;
}

/* === แสดงข้อความปุ่มสลับทิศทางการเรียงลำดับตรงๆ (2026-08-25) ===
   ของเดิม Magento ซ่อน <span> ด้วย clip:rect(0,0,0,0) เหลือแต่ลูกศร
   ผู้ใช้ต้อง hover ถึงจะรู้ว่ากดแล้วได้อะไร — เอาข้อความออกมาแสดงข้างลูกศร
   ขนาด 1.4rem ให้เท่ากับ toolbar-amount ที่อยู่แถบเดียวกัน */
.sorter-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sorter-action > span {
    position: static;
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    font-size: 1.4rem;
    font-family: 'Prompt', sans-serif;
    white-space: nowrap;
    color: #292f36;
}
.sorter-action:hover > span {
    color: #C4161C;
}


/* === ปุ่มลอยติดต่อ SCMA (2026-08-28) — แทนวิดเจ็ต GetButton.io ===
   เดิม Messenger + LINE ซ่อนอยู่ใน GetButton ต้องกดเปิดก่อนถึงเห็น
   เปลี่ยนเป็นปุ่มของเราเอง แสดงค้างตลอดแบบเดียวกับปุ่ม Facebook fanpage
   ตำแหน่งตายตัว ไม่ต้องใช้สคริปต์คำนวณอีก (ถอด SCMA-FB-POSITIONER ออกแล้ว) */
.scma-float-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;  /* LINE ล่างสุด ไล่ขึ้นบน */
    gap: 12px;
}
.scma-float-btn {
    /* +25% (2026-08-28): 50 -> 62px */
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform .15s ease, filter .15s ease;
}
.scma-float-btn svg { width: 32px; height: 32px; }
.scma-float-btn:hover { transform: scale(1.08); filter: brightness(1.08); }
.scma-float-line      { background: #06C755; }
.scma-float-messenger { background: #0084FF; }

/* ปุ่ม Facebook fanpage ต่อคิวบนสุดของ stack (2 ปุ่ม × 50px + gap 12px × 2 + bottom 24px) */
.facebook-floating { bottom: 172px !important; }

@media (max-width: 480px) {
    .scma-float-stack { right: 16px; bottom: 16px; gap: 10px; }
    .scma-float-btn { width: 55px; height: 55px; }
    .scma-float-btn svg { width: 28px; height: 28px; }
    /* ปุ่ม facebook ให้ขนาดเท่ากันบนมือถือด้วย (เดิมค้าง 50px ไม่เข้าชุด) */
    .facebook-floating-btn { width: 55px !important; height: 55px !important; }
    .facebook-floating-btn .fa-facebook { font-size: 26px; }
    /* 16 + (55+10+55) + 10 = 146 */
    .facebook-floating { right: 16px !important; bottom: 146px !important; }
}


/* === แถบไฮไลต์แดงใต้เมนู: กันแถบของเมนูที่ติดกันเชื่อมเป็นเส้นเดียว (2026-08-28) ===
   เดิมใช้ border-bottom บน .ammenu-link ซึ่งกินความกว้าง **เต็มปุ่มรวม padding**
   พอมี 2 เมนูติดกันติดไฮไลต์พร้อมกัน (เช่นหน้าปัจจุบัน -current + ตัวที่ hover อยู่)
   แถบสองอันจะชนกันพอดีจนดูเป็นเส้นยาวเส้นเดียว แยกไม่ออกว่าเป็นคนละเมนู
   แก้: เปลี่ยนไปวาดด้วย ::before ที่หดเข้ามาจากขอบทั้งสองข้าง → มีช่องว่างคั่นเสมอ
   (คง border-bottom ไว้แบบโปร่งใส เพื่อไม่ให้ความสูงแถบเมนูขยับ) */
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link:hover,
.ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link:hover,
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link.-current,
.ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link.-current {
    border-bottom: 3px solid transparent !important;
}
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link:hover::before,
.ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link:hover::before,
.ammenu-nav-sections.-topmenu .ammenu-items.-root > .ammenu-item > .ammenu-link.-current::before,
.ammenu-nav-sections.-topmenu.-sticky .ammenu-items.-root > .ammenu-item > .ammenu-link.-current::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -3px;
    height: 3px;
    background: #C4161C;
    border-radius: 2px;
}


/* === fix: header-top ล้นจอมือถือ ดัน cart/user/language switcher หลุดขอบจอ (2026-08-21) ===
   root cause: rule "swap search/menu layout (added 2026-08-12)" บังคับ search เต็มความกว้าง
   ในแถวเดียวกับ hamburger+icon โดยไม่ได้จำกัดแค่ desktop — บนจอแคบ hamburger+search+ASK AI
   รวมกันกว้างเกิน viewport ดัน .icon-right (cart/user) ล้นออกนอกจอมองไม่เห็น
   แก้: ให้แถวนี้ wrap ได้บนมือถือ แทนที่จะ nowrap แล้วโดนตัดเงียบๆ
   ⚠️ เดิม fix นี้อยู่บน .38 เครื่องเดียว (.33 ไม่เคยได้) — รวมเข้ามาตอน deploy 28ส.ค. */
@media (max-width: 768px) {
    .main-header .header-top {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .main-header .header-top .middle-content {
        order: 3;
        flex: 1 1 100%;
        padding: 0;
    }
}


/* === footer: ทำให้ลิงก์ "ดูเป็นลิงก์" (2026-08-31) ===
   ปัญหา: .footer-content a เป็น color:#fff / font-weight:300 = หน้าตาเหมือนข้อความธรรมดา
   ทุกประการ ไม่มีเส้นใต้ ไม่มีสีต่าง ผู้ใช้ต้องเอาเมาส์กวาดหาเองว่าอันไหนคลิกได้
   แก้: ขีดเส้นใต้จางๆ เป็นสัญญาณว่าคลิกได้ แล้วเข้มขึ้น+เป็นสีแบรนด์ตอน hover/โฟกัสคีย์บอร์ด */
.footer-content a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.footer-content a:hover,
.footer-content a:focus-visible {
    color: #C4161C;
    text-decoration-color: #C4161C;
}
/* ไอคอนโซเชียลกับโลโก้เป็นรูป ไม่ต้องมีเส้นใต้ */
.footer-content .social a,
.footer-content .f-logo a {
    text-decoration: none;
}
/* ข้อความที่ตั้งใจให้ "ไม่ใช่ลิงก์" (เบอร์ Fax) — จางกว่าลิงก์ชัดเจน แต่ยังอ่านง่าย */
.footer-content .f-plain {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
}

/* === footer: icon นำหน้าทุกอย่างที่ "กดได้" + วงกลมสีตามประเภท (2026-08-31) ===
   ย้ายไอคอนโซเชียลจากแถวลอยใต้ที่อยู่ มาเป็นไอคอนนำหน้ารายการ
   ใช้กับ: สาขา (หมุดแผนที่) · ช่องทางติดต่อ (โทร/เมล) · นโยบายความเป็นส่วนตัว (คุกกี้)
   → ผู้ใช้เห็นทันทีว่าบรรทัดไหนกดได้ ไม่ต้องเอาเมาส์กวาดหา
   🔑 ไอคอนใช้ไฟล์ "สีขาวล้วน" (icon-*-w.svg) แล้วให้สีมาจากพื้นหลังวงกลมแทน
      — จะได้เปลี่ยนสีได้จาก CSS ที่เดียว ไม่ต้องแก้ไฟล์ SVG */
.footer-content li.ci {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-content .f-legal .ci {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.footer-content .c-ico {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 7px;
    border-radius: 50%;
    box-sizing: border-box;
    object-fit: contain;
    background: #C4161C;
    transition: transform 0.15s ease, filter 0.15s ease;
}
/* สีแยกตามประเภทช่องทาง — อ่านจากชื่อไฟล์ ไม่ต้องเพิ่ม class ใน CMS */
.footer-content .c-ico[src*="icon-map"]    { background: #EA4335; }  /* หมุดแผนที่ */
.footer-content .c-ico[src*="icon-call"]   { background: #22A45D; }  /* โทรศัพท์ */
.footer-content .c-ico[src*="icon-mail"]   { background: #2F6BE0; }  /* อีเมล */
.footer-content .c-ico[src*="icon-cookie"] { background: #E8A33D; }  /* คุกกี้ */
.footer-content .ci:hover .c-ico {
    transform: scale(1.1);
    filter: brightness(1.12);
}
/* ช่องว่างของบรรทัดที่ไม่ใช่ลิงก์ (แฟกซ์) — กว้างเท่าวงกลมเพื่อให้ข้อความตรงแนวกัน */
.footer-content li.ci > span.c-ico {
    background: none;
}
/* แถวนโยบายความเป็นส่วนตัว — คั่นด้วยเส้นบางให้แยกจากเนื้อหาด้านบน */
.footer-content .f-legal {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 15%);
}
@media (max-width: 767px) {
    .footer-content .f-legal {
        margin-top: 15px;
        padding-top: 14px;
    }
}

/* === ปุ่มลอย: เพิ่ม YouTube + Instagram (2026-08-31) ===
   stack เดิม 2 ปุ่ม (LINE, Messenger) → เป็น 4 ปุ่ม
   🔑 ปุ่ม Facebook อยู่นอก stack ต้องเลื่อน bottom ตามจำนวนปุ่มใน stack เสมอ
      desktop: 24 + n*(62+12)   ·   mobile: 16 + n*(55+10)   (n = จำนวนปุ่มใน stack) */
.scma-float-youtube   { background: #FF0000; }
.scma-float-instagram { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 70%, #515BD4 100%); }
.facebook-floating    { bottom: 320px !important; }   /* n=4: 24 + 4*74 */
@media (max-width: 480px) {
    .facebook-floating { bottom: 276px !important; }  /* n=4: 16 + 4*65 */
}

/* === ป้ายโปรโมชั่น: ทรงแฉก (starburst 12 แฉก) ===
   🔑 ข้อความต้องอยู่ใน "วงกลมด้านใน" ของแฉก = ~75%% ของความกว้าง (ร่องแฉกอยู่ที่ r=37.5%%)
      คำว่า PROMOTION ยาว 9 ตัว → ถ้าปุ่มเล็กกว่านี้ตัวอักษรจะล้นทะลุแฉกออกมา
   2026-08-31 เปลี่ยนจากแสดง "-25%" เป็นคำว่า PROMOTION ตามที่ทีมขอ
   → ตัดสีแยกตามระดับส่วนลด (t2/t3) ออก เพราะไม่มีตัวเลขให้เทียบแล้ว สีต่างกันจะทำให้งงเปล่าๆ */
.scma-off-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    background: radial-gradient(circle at 35% 30%, #F5372F 0%, #C4161C 75%);
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0 7px;
    box-sizing: border-box;
    line-height: 1;
    letter-spacing: 0.2px;
    text-align: center;
    pointer-events: none;   /* ไม่บังการคลิกรูปสินค้า */
    /* 🔑 clip-path ตัดเป็นแฉก — ใช้ % ทั้งหมด ป้ายจึงคงรูปทุกขนาดโดยไม่ต้องคำนวณใหม่
       ⚠️ clip-path ตัดเงา box-shadow ทิ้งด้วย ถ้าอยากได้เงาต้องใส่ drop-shadow ที่ตัวครอบแทน */
    -webkit-clip-path: polygon(50.0% 0.0%, 59.7% 13.8%, 75.0% 6.7%, 76.5% 23.5%, 93.3% 25.0%, 86.2% 40.3%, 100.0% 50.0%, 86.2% 59.7%, 93.3% 75.0%, 76.5% 76.5%, 75.0% 93.3%, 59.7% 86.2%, 50.0% 100.0%, 40.3% 86.2%, 25.0% 93.3%, 23.5% 76.5%, 6.7% 75.0%, 13.8% 59.7%, 0.0% 50.0%, 13.8% 40.3%, 6.7% 25.0%, 23.5% 23.5%, 25.0% 6.7%, 40.3% 13.8%);
            clip-path: polygon(50.0% 0.0%, 59.7% 13.8%, 75.0% 6.7%, 76.5% 23.5%, 93.3% 25.0%, 86.2% 40.3%, 100.0% 50.0%, 86.2% 59.7%, 93.3% 75.0%, 76.5% 76.5%, 75.0% 93.3%, 59.7% 86.2%, 50.0% 100.0%, 40.3% 86.2%, 25.0% 93.3%, 23.5% 76.5%, 6.7% 75.0%, 13.8% 59.7%, 0.0% 50.0%, 13.8% 40.3%, 6.7% 25.0%, 23.5% 23.5%, 25.0% 6.7%, 40.3% 13.8%);
}
.scma-save {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 4px;
    background: #FFF1F1;
    color: #C4161C;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
}
/* หน้าสินค้าเดี่ยว — ป้ายใหญ่ขึ้นให้สมกับรูปใหญ่ */
.catalog-product-view .scma-off-badge {
    top: 14px;
    left: 14px;
    width: 132px;
    height: 132px;
    font-size: 1.3rem;
}
.catalog-product-view .scma-save {
    font-size: 1.6rem;
    padding: 5px 14px;
}
@media (max-width: 767px) {
    .scma-off-badge {
        width: 74px;
        height: 74px;
        font-size: 0.78rem;
        top: 5px;
        left: 5px;
    }
}

/* แถบแสงวิ่งบนป้าย — ชุดเดียวกับปุ่ม ASK AI
   🔑 ไม่ต้องใส่ overflow:hidden เพราะ clip-path ของทรงแฉกตัดให้อยู่แล้ว */
.scma-off-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: scmaBadgeShine 2.2s ease-in-out infinite;
}
@keyframes scmaBadgeShine {
    0%, 45% { left: -60%; }
    100%     { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
    .scma-off-badge::after { animation: none; }
}
