.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
} .my-single-product-wrapper {
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-bottom: 50px;
align-items: flex-start;
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
justify-content: center;
}
.product-header-with-breadcrumb {
width: 100%;
}
.woocommerce-breadcrumb {
font-size: 14px;
color: #555;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
} .product-gallery {
flex: 4; min-width: 350px; max-width: 45%; display: flex;
justify-content: flex-end;
}
.woocommerce-product-gallery {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.woocommerce-product-gallery__image {
transition: all 0.3s ease;
}
.woocommerce-product-gallery__image:hover {
transform: scale(1.02);
} .product-details {
flex: 3; max-width: 50%; min-width: 280px;
padding-left: 20px;
word-break: break-word;
}
.product-title {
font-size: 28px;
font-weight: 700;
margin-bottom: 15px;
color: #222;
line-height: 1.3;
letter-spacing: -0.5px;
overflow-wrap: break-word;
word-break: break-word;
}
.product-short-description {
margin-bottom: 20px;
font-size: 16px;
color: #555;
line-height: 1.6;
}
.product-price {
margin-bottom: 25px;
font-size: 24px;
font-weight: 700;
color: #000;
} .product-add-to-cart {
margin-bottom: 25px;
}
.product-add-to-cart .quantity {
margin-right: 10px;
display: inline-flex;
align-items: center;
border-radius: 4px;
border: 1px solid #ddd;
overflow: hidden;
height: 50px;
background-color: #f9f9f9;
}
.product-add-to-cart .quantity input {
width: 50px;
height: 100%;
padding: 0;
border: none;
font-size: 16px;
text-align: center;
background-color: transparent;
}
.product-add-to-cart .single_add_to_cart_button {
height: 50px;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 160px;
font-size: 15px;
}
.product-add-to-cart .single_add_to_cart_button:hover {
background-color: #333 !important; transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
} .เพิ่มใส่ตะกร้า {
background-color: #000 !important;
color: #fff !important;
font-weight: 600;
padding: 15px 30px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: all 0.3s ease;
display: inline-block;
border: none;
cursor: pointer;
width: 100%;
margin-top: 15px;
} .product-meta {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
}
.product-brands, .product-tags {
margin-bottom: 12px;
}
.product-pill {
display: inline-block;
padding: 6px 14px;
margin: 0 5px 8px 0;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
transition: all 0.2s ease;
}
.product-brand-pill {
background-color: #f0f0f0;
color: #000;
border: 1px solid #ddd;
}
.product-brand-pill:hover {
background-color: #e6e6e6;
}
.product-tag-pill {
background-color: #f5f5f5;
color: #555;
border: 1px solid #eee;
}
.product-tag-pill:hover {
background-color: #eee;
} .description-title, .section-title {
font-size: 22px;
font-weight: 700;
margin: 30px 0 20px;
padding-bottom: 12px;
border-bottom: 2px solid #f0f0f0;
color: #000;
text-transform: uppercase;
letter-spacing: 0.5px;
position: relative;
}
.description-title:after, .section-title:after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 60px;
height: 2px;
background-color: #000;
} .announcement-section {
margin: 40px 0;
background-color: #fff;
padding: 25px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.announcement-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
.announcement-item {
border-radius: 8px;
padding: 20px;
display: flex;
align-items: flex-start;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #eee;
}
.announcement-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.announcement-icon {
width: 40px;
height: 40px;
margin-right: 15px;
object-fit: contain;
}
.announcement-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 5px;
color: #333;
}
.announcement-text {
font-size: 14px;
color: #666;
margin: 0;
} .product-description-section {
margin-bottom: 40px;
background-color: #fff;
border-radius: 10px;
padding: 30px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.product-description-content {
max-height: 8.5em;
overflow: hidden;
transition: max-height 0.5s ease;
}
.product-description-content.open {
max-height: 2000px;
}
.product-description-content p, 
.product-description-content ul, 
.product-description-content ol {
margin-bottom: 18px;
color: #444;
line-height: 1.7;
font-size: 15px;
}
.product-description-content h3, 
.product-description-content h4 {
margin-top: 28px;
margin-bottom: 15px;
color: #000;
font-weight: 600;
}
.toggle-description-btn {
display: block;
margin: 20px auto 0;
background-color: #000;
color: #fff;
border: none;
padding: 12px 25px;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 14px;
}
.toggle-description-btn:hover {
background-color: #333;
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
} .related-articles-slider {
position: relative;
margin: 40px 0;
padding: 0 40px;
background-color: #fff;
border-radius: 10px;
padding: 30px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.slider-wrapper {
overflow: hidden;
padding: 10px 0;
}
.slider-track {
display: flex;
transition: transform 0.5s ease;
}
.related-article-item {
flex: 0 0 calc(100% / 3); padding: 0 12px;
box-sizing: border-box;
}
.related-article-item img {
width: 100%;
height: 190px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 12px;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.related-article-item:hover img {
transform: scale(1.03);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.related-article-item h3 {
font-size: 15px;
font-weight: 600;
margin: 12px 0;
color: #222;
transition: color 0.3s ease;
line-height: 1.4;
height: 42px;
overflow: hidden;
}
.related-article-item a {
text-decoration: none;
color: inherit;
}
.related-article-item:hover h3 {
color: #000;
}
.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 42px;
height: 42px;
background-color: #000;
border: none;
border-radius: 50%;
font-size: 18px;
color: #fff;
cursor: pointer;
z-index: 2;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.slider-btn:hover {
background-color: #333;
transform: translateY(-50%) scale(1.05);
}
.prev {
left: 10px;
}
.next {
right: 10px;
} @media (max-width: 992px) {
.my-single-product-wrapper {
flex-direction: column;
padding: 20px;
}
.product-gallery {
min-width: 100%;
}
.product-details {
padding-left: 0;
margin-top: 20px;
}
}
@media (max-width: 768px) {
.related-article-item {
flex: 0 0 100%; }
.announcement-list {
grid-template-columns: 1fr;
}
.product-title {
font-size: 22px;
}
.description-title, .section-title {
font-size: 20px;
margin-top: 25px;
}
.related-articles-slider,
.announcement-section,
.product-description-section {
padding: 20px;
}
.product-price {
font-size: 22px;
}
.product-add-to-cart .single_add_to_cart_button {
padding: 12px 20px;
}
.toggle-description-btn {
width: 100%;
}
}
@media (max-width: 480px) {
.product-title {
font-size: 20px;
}
.description-title, .section-title {
font-size: 18px;
}
.slider-btn {
width: 36px;
height: 36px;
}
.product-pill {
margin-bottom: 6px;
}
}  .related-articles-section {
padding: 30px 0;
background-color: #f9f9f9;
border-radius: 15px;
margin: 30px 0;
}
.section-title {
text-align: center;
font-size: 24px;
font-weight: 700;
margin-bottom: 25px;
color: #222;
position: relative;
padding-bottom: 12px;
}
.section-title:after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: #5db2e1;
border-radius: 3px;
}
.related-articles-slider {
position: relative;
padding: 20px 50px;
overflow: hidden;
}
.slider-wrapper {
overflow: hidden;
position: relative;
}
.slider-track {
display: flex;
gap: 20px;
transition: transform 0.4s ease;
}
.related-article-item {
flex: 0 0 calc(33.333% - 14px);
max-width: calc(33.333% - 14px);
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
overflow: hidden;
transition: all 0.3s ease;
}
.related-article-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.related-article-item img {
width: 100%;
height: 200px;
object-fit: cover;
display: block;
transition: all 0.4s ease;
}
.related-article-item:hover img {
transform: scale(1.05);
}
.related-article-item h3 {
font-size: 16px;
padding: 16px 20px;
margin: 0;
font-weight: 600;
color: #222;
line-height: 1.5;
height: auto;
min-height: 75px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.slider-btn {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 50%;
width: 42px;
height: 42px;
background: rgba(0,0,0,0.7);
color: #fff;
font-size: 20px;
border-radius: 50%;
transform: translateY(-50%);
z-index: 10;
box-shadow: 0 3px 10px rgba(0,0,0,0.15);
cursor: pointer;
transition: all 0.3s ease;
border: none;
}
.slider-btn:hover {
background: rgba(93, 178, 225, 0.85);
transform: translateY(-50%) scale(1.1);
}
.slider-btn.prev {
left: 15px;
}
.slider-btn.next {
right: 15px;
} @media (max-width: 1200px) {
.related-article-item {
flex: 0 0 calc(33.333% - 14px);
max-width: calc(33.333% - 14px);
}
.related-article-item img {
height: 180px;
}
.related-article-item h3 {
font-size: 15px;
padding: 14px 18px;
min-height: 70px;
}
} @media (max-width: 992px) {
.related-article-item {
flex: 0 0 calc(50% - 10px);
max-width: calc(50% - 10px);
}
.related-articles-slider {
padding: 15px 45px;
}
.related-article-item img {
height: 170px;
}
.related-article-item h3 {
font-size: 15px;
padding: 12px 16px;
min-height: 65px;
}
.slider-btn {
width: 38px;
height: 38px;
font-size: 18px;
}
} @media (max-width: 768px) {
.related-articles-section {
padding: 20px 0;
margin: 25px 0;
}
.section-title {
font-size: 20px;
margin-bottom: 20px;
padding-bottom: 10px;
}
.section-title:after {
width: 50px;
height: 2px;
}
.related-articles-slider {
padding: 10px 40px;
}
.slider-track {
gap: 15px;
padding: 5px 0;
}
.related-article-item {
flex: 0 0 calc(100% - 10px);
max-width: calc(100% - 10px);
margin: 0 5px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
border-radius: 10px;
}
.related-article-item img {
height: 180px;
border-radius: 10px 10px 0 0;
}
.related-article-item h3 {
font-size: 15px;
padding: 14px 16px;
min-height: auto;
-webkit-line-clamp: 2;
}
.slider-btn {
width: 36px;
height: 36px;
font-size: 16px;
}
.slider-btn.prev {
left: 10px;
}
.slider-btn.next {
right: 10px;
}
} @media (max-width: 480px) {
.related-articles-section {
padding: 15px 0;
margin: 20px 0;
}
.section-title {
font-size: 18px;
margin-bottom: 15px;
}
.related-articles-slider {
padding: 5px 35px;
}
.related-article-item img {
height: 160px;
}
.related-article-item h3 {
font-size: 14px;
padding: 12px 14px;
line-height: 1.4;
}
.slider-btn {
width: 32px;
height: 32px;
font-size: 14px;
opacity: 0.8;
}
.slider-btn.prev {
left: 5px;
}
.slider-btn.next {
right: 5px;
}
} @media (max-width: 375px) {
.related-article-item img {
height: 140px;
}
.related-article-item h3 {
font-size: 13px;
padding: 10px 12px;
}
.slider-btn {
width: 30px;
height: 30px;
font-size: 12px;
}
} @media (max-width: 768px) {
.slider-wrapper {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scroll-snap-type: x mandatory;
scrollbar-width: none; -ms-overflow-style: none; padding: 5px 0;
}
.slider-wrapper::-webkit-scrollbar {
display: none; }
.slider-track {
padding: 10px 5px;
margin: 0 10px;
}
.related-article-item {
scroll-snap-align: center;
flex: 0 0 85%;
max-width: 85%;
margin: 0 auto;
}
}
@media (min-width: 993px) {
.product-add-to-cart form.cart {
display: flex;
align-items: center; gap: 16px;
flex-wrap: nowrap;
}
.product-add-to-cart .stock {
margin: 0;
font-size: 14px;
color: #555;
align-self: center; order: -1; }
.product-add-to-cart .quantity,
.product-add-to-cart .single_add_to_cart_button {
height: 50px;
display: flex;
align-items: center;
}
.product-add-to-cart .quantity {
display: flex;
border: 1px solid #ccc;
border-radius: 6px;
overflow: hidden;
height: 50px;
background-color: #f5f5f5;
}
.product-add-to-cart .quantity input.qty {
width: 60px;
text-align: center;
border: none;
font-size: 16px;
font-weight: 600;
background-color: transparent;
}
.product-add-to-cart .quantity button.minus,
.product-add-to-cart .quantity button.plus {
width: 36px;
border: none;
background-color: #eaeaea;
font-size: 18px;
font-weight: bold;
cursor: pointer;
}
.product-add-to-cart .single_add_to_cart_button {
padding: 0 24px;
line-height: 1;
font-size: 15px;
background-color: #000;
color: #fff;
border-radius: 6px;
border: none;
font-weight: 600;
transition: 0.3s all ease;
}
.product-add-to-cart .single_add_to_cart_button:hover {
background-color: #333;
transform: translateY(-2px);
}
}
.woocommerce ul.products li.product {
border: 1px solid #eee;
border-radius: 16px;
padding: 10px;
background-color: #fff;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.3s ease;
text-align: center;
} .woocommerce ul.products li.product:hover {
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
transform: translateY(-5px);
} .woocommerce ul.products li.product img {
max-height: 180px;
object-fit: contain;
margin: 0 auto 10px auto;
}
.detail-button {
background: #000;
color: #fff;
border-top-left-radius: 16px;
border-bottom-right-radius: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.detail-button:hover {
background-color: #222;
}
.woocommerce ul.products li.product {
border: 1px solid #eee;
border-radius: 16px;
padding: 10px;
background-color: #fff;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.3s ease;
text-align: center;
} .woocommerce ul.products li.product:hover {
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
transform: translateY(-5px);
} .woocommerce ul.products li.product img {
max-height: 180px;
object-fit: contain;
margin: 0 auto 10px auto;
} .product-card-tags {
margin-bottom: 8px;
}
.product-card-tag {
display: inline-block;
padding: 3px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: bold;
color: #fff;
margin: 2px 4px 2px 0;
}
.product-card-tag.blue { background-color: #0d99ff; }
.product-card-tag.black { background-color: #333; }
.product-card-tag.gray { background-color: #999; } .woocommerce ul.products li.product .woocommerce-loop-product__title {
font-weight: bold;
font-size: 16px;
min-height: 44px;
} .woocommerce ul.products li.product .price {
font-weight: bold;
font-size: 18px;
color: #e5003c;
margin: 0px 0px 55px 0px;
}
.woocommerce ul.products li.product .price del {
color: #aaa;
font-size: 14px;
margin-right: 5px;
} .woocommerce ul.products li.product .button {
background-color: #000;
color: #fff;
border-radius: 20px;
padding: 10px 20px;
font-weight: bold;
text-transform: uppercase;
width: 100%;
transition: background-color 0.3s ease;
}
.woocommerce ul.products li.product .button:hover {
background-color: #333;
} .woocommerce ul.products li.product .custom-add-to-cart .button {
background-color: #000;
color: #fff;
border-radius: 20px;
padding: 12px 0;
text-align: center;
width: 100%;
font-weight: bold;
text-transform: uppercase;
transition: background-color 0.3s ease;
margin-top: 15px;
}
.woocommerce ul.products li.product .custom-add-to-cart .button:hover {
background-color: #333;
} .woocommerce ul.products li.product .button.add_to_cart_button {
margin: 0;
padding: 0;
} .detail-button {
position: absolute;
bottom: 0;
right: 0;
width: 140px;
height: 50px;
background: #000;
color: white;
text-align: center;
line-height: 50px;
border-top-left-radius: 16px;
border-bottom-right-radius: 16px;
font-weight: bold;
font-size: 14px;
text-decoration: none;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
margin-top: 12px; } .detail-button:hover {
background-color: #fff;
color: #000;
border: 1px solid #000;
} .detail-button {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.product-labels {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 10px 0;
position: relative;
z-index: 5;
}
li.product, 
.woocommerce ul.products li.product {
overflow: visible; position: relative; }
.device-tag, .product-tag {
background: linear-gradient(to right, #3f3f3f, #000);
color: #fff;
font-size: 12px;
padding: 4px 12px;
border-radius: 999px;
white-space: nowrap;
}
.device-tag {
background: linear-gradient(to right, #00AAFF, #016699);
}
.more-tags {
background: #666;
color: #fff;
font-size: 12px;
padding: 4px 8px;
border-radius: 999px;
cursor: pointer;
position: relative;
z-index: 10;
}
.more-tags-popup {
display: none;
position: absolute;
top: 120%;
left: 0;
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
z-index: 9999;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
white-space: normal;
min-width: 120px;
}
.more-tags-popup .product-tag {
margin: 4px;
display: inline-block;
}
.more-tags.show .more-tags-popup {
display: block;
}
.more-tags {
background: #666;
color: #fff;
font-size: 12px;
padding: 4px 8px;
border-radius: 999px;
cursor: pointer;
position: relative;
}
.more-tags-popup {
display: none;
position: absolute;
top: 120%;
left: 0;
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
z-index: 10;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
white-space: normal;
min-width: 120px;
}
.more-tags-popup .product-tag,
.more-tags-popup .device-tag {
margin: 4px;
display: inline-block;
} .more-tags:hover .more-tags-popup {
display: block;
} .more-tags-popup {
opacity: 0;
transform: translateY(5px);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.more-tags:hover .more-tags-popup {
opacity: 1;
transform: translateY(0);
}
.woocommerce ul.products li.product {
position: relative;
overflow: visible; } .woocommerce ul.products li.product .product-link {
position: static !important; overflow: visible !important;
} .more-tags {
position: relative;
z-index: 10;
}
.more-tags-popup {
z-index: 9999; position: absolute;
top: 120%;
left: 0;
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
white-space: normal;
display: none;
}
.more-tags:hover .more-tags-popup {
display: block;
opacity: 1;
transform: translateY(0);
} .my-single-product-wrapper {
display: flex;
gap: 50px;
align-items: flex-start;
max-width: 1200px;
margin: 0 auto;
padding: 50px 20px;
box-sizing: border-box;
} .product-gallery {
flex: 1;
max-width: 600px;
}
.woocommerce-product-gallery {
width: 100%;
} .product-details {
flex: 1;
max-width: 600px;
} .product-short-description {
margin-bottom: 30px;
font-size: 1.1rem;
line-height: 1.6;
color: #333;
} .product-price {
font-size: 2.5rem;
color: #d60000;
margin: 30px 0 20px 0;
} .product-add-to-cart {
margin: 20px 0;
} .woocommerce div.product form.cart .quantity {
margin-right: 10px;
}
.woocommerce div.product form.cart button.single_add_to_cart_button {
background-color: #000;
color: #fff;
padding: 12px 40px;
border-radius: 6px;
border: none;
transition: background-color 0.3s ease;
}
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
background-color: #333;
} .product-meta {
margin-top: 30px;
font-size: 1rem;
color: #666;
}
.product-meta strong {
margin-right: 8px;
color: #222;
}  .widget_shopping_cart {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 15px;
padding: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
} .widget_shopping_cart::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transform: rotate(45deg);
z-index: 0;
} .widget_shopping_cart .widget-title {
color: #fff;
font-size: 18px;
font-weight: 600;
margin-bottom: 15px;
text-align: center;
position: relative;
z-index: 1;
} .widget_shopping_cart .woocommerce-mini-cart {
position: relative;
z-index: 1;
max-height: 300px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
} .widget_shopping_cart .woocommerce-mini-cart::-webkit-scrollbar {
width: 6px;
}
.widget_shopping_cart .woocommerce-mini-cart::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.widget_shopping_cart .woocommerce-mini-cart::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 10px;
} .widget_shopping_cart .woocommerce-mini-cart-item {
background: rgba(255, 255, 255, 0.15);
border-radius: 10px;
padding: 12px;
margin-bottom: 10px;
display: flex;
align-items: center;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.widget_shopping_cart .woocommerce-mini-cart-item:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} .widget_shopping_cart .woocommerce-mini-cart-item img {
width: 50px;
height: 50px;
border-radius: 8px;
margin-right: 12px;
object-fit: cover;
border: 2px solid rgba(255, 255, 255, 0.2);
} .widget_shopping_cart .woocommerce-mini-cart-item a {
color: #fff;
text-decoration: none;
font-weight: 500;
flex: 1;
font-size: 14px;
line-height: 1.4;
}
.widget_shopping_cart .woocommerce-mini-cart-item a:hover {
color: #ffd700;
text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
} .widget_shopping_cart .quantity {
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
margin-top: 4px;
} .widget_shopping_cart .woocommerce-mini-cart__total {
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
padding: 15px;
margin: 15px 0;
text-align: center;
backdrop-filter: blur(10px);
}
.widget_shopping_cart .woocommerce-mini-cart__total strong {
color: #fff;
font-size: 18px;
font-weight: 700;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
} .widget_shopping_cart .woocommerce-mini-cart__buttons {
display: flex;
gap: 10px;
margin-top: 15px;
}
.widget_shopping_cart .woocommerce-mini-cart__buttons a {
flex: 1;
padding: 12px 20px;
border-radius: 25px;
text-decoration: none;
text-align: center;
font-weight: 600;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
} .widget_shopping_cart .wc-forward:not(.checkout) {
background: rgba(255, 255, 255, 0.2);
color: #fff;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.widget_shopping_cart .wc-forward:not(.checkout):hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} .widget_shopping_cart .checkout {
background: linear-gradient(45deg, #ffd700, #ffed4e);
color: #333;
border: none;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.widget_shopping_cart .checkout:hover {
background: linear-gradient(45deg, #ffed4e, #ffd700);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
} .widget_shopping_cart .woocommerce-mini-cart__empty-message {
color: rgba(255, 255, 255, 0.8);
text-align: center;
padding: 30px 20px;
font-style: italic;
} @keyframes slideInCart {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.widget_shopping_cart .woocommerce-mini-cart-item {
animation: slideInCart 0.3s ease-out;
} @media (max-width: 768px) {
.widget_shopping_cart {
border-radius: 10px;
padding: 15px;
}
.widget_shopping_cart .woocommerce-mini-cart__buttons {
flex-direction: column;
}
.widget_shopping_cart .woocommerce-mini-cart-item img {
width: 40px;
height: 40px;
}
} .widget_shopping_cart.loading {
position: relative;
}
.widget_shopping_cart.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 30px;
height: 30px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
transform: translate(-50%, -50%);
z-index: 10;
}
@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
} .cart-icon {
position: relative;
display: inline-block;
}
.cart-icon .cart-count {
position: absolute;
top: -8px;
right: -8px;
background: linear-gradient(45deg, #ff6b6b, #ee5a52);
color: white;
border-radius: 50%;
width: 20px;
height: 20px;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
} .woocommerce-mini-cart,
.widget_shopping_cart_content {
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 20px;
font-family: 'Prompt', sans-serif;
max-width: 360px;
} .woocommerce-mini-cart__empty-message,
.woocommerce-mini-cart__total {
font-weight: bold;
font-size: 16px;
color: #333;
margin-top: 10px;
} .woocommerce-mini-cart-item {
display: flex;
align-items: center;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
} .woocommerce-mini-cart-item .woocommerce-mini-cart__product-thumbnail img {
width: 64px;
height: 64px;
object-fit: cover;
border-radius: 8px;
margin-right: 15px;
} .woocommerce-mini-cart-item .woocommerce-mini-cart__product-name {
font-size: 15px;
font-weight: 500;
color: #444;
}
.woocommerce-mini-cart-item .quantity {
display: block;
font-size: 13px;
color: #888;
} .woocommerce-mini-cart__buttons a {
display: block;
background-color: #5db2e1;
color: white !important;
padding: 10px;
margin-top: 10px;
border-radius: 8px;
text-align: center;
text-decoration: none;
font-weight: 600;
transition: background-color 0.2s;
}
.woocommerce-mini-cart__buttons a:hover {
background-color: #359ac7;
}
.woocommerce-mini-cart-item {
display: flex;
align-items: center;
gap: 16px;
padding: 15px 0;
border-bottom: 1px solid #eee;
position: relative;
}
.mini-cart-thumbnail img {
width: 64px;
height: 64px;
border-radius: 8px;
object-fit: cover;
}
.mini-cart-content {
flex: 1;
display: flex;
flex-direction: column;
}
.quantity {
font-size: 13px;
color: #777;
margin-top: 6px;
} .woocommerce-checkout .form-row {
margin-bottom: 15px;
}
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
border-radius: 8px;
border: 1px solid #ddd;
padding: 12px;
background-color: #fff;
} .woocommerce-form-coupon {
padding: 15px;
border-radius: 8px;
border: 1px solid #eee;
margin-bottom: 20px;
background-color: #fafafa;
}
.woocommerce-form-coupon input#coupon_code {
width: auto;
max-width: 250px;
display: inline-block;
margin-right: 5px;
} .woocommerce-checkout-review-order {
padding: 15px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,.1);
} #place_order {
background-color: #0056b3;
color: #fff;
border-radius: 8px;
padding: 12px 20px;
transition: background-color 0.3s ease;
}
#place_order:hover {
background-color: #004494;
} .woocommerce-checkout .form-row input[type=checkbox] {
transform: scale(1.2);
margin-right: 5px;
} .woocommerce-checkout h3 {
font-size: 1.4em;
border-bottom: 2px solid #eee;
padding-bottom: 5px;
margin-bottom: 20px;
} .woocommerce-checkout-review-order .qr-code img {
max-width: 120px;
height: auto;
display: inline-block;
margin: 10px 0;
}
.woocommerce-breadcrumb:not(main .woocommerce-breadcrumb) {
display: none !important;
} .focus-flash-sale-box + .product-price,
.focus-flash-sale-box + .product-price-and-cart-group .product-price {
display: none !important;
} .focus-flash-sale-box ~ .product-price {
display: none !important;
}
#flash-sale-timer {
font-size: 16px;
background: #fff5f5;
padding: 8px 12px;
border-left: 4px solid #e02424;
margin-bottom: 10px;
display: inline-block;
}
.flash-sale-timer-wrapper {
display: flex;
align-items: center;
gap: 8px;
font-family: 'Sarabun', sans-serif;
font-size: 18px;
}
.flash-sale-label {
color: #888;
font-weight: 300;
}
.flash-sale-box {
background: #000;
color: #fff;
padding: 4px 10px;
border-radius: 4px;
font-size: 18px;
font-weight: bold;
min-width: 40px;
text-align: center;
} .product-filter-widget {
border: 1px solid #e3e3e3;
background-color: #f9f9f9;
}
.product-filter-widget .widget-title {
background-color: #84c733; color: #fff;
padding: 12px 15px;
margin: 0;
font-size: 18px;
text-align: center;
}
.product-filter-widget form {
padding: 15px;
} .filter-section {
border-bottom: 1px solid #e3e3e3;
margin-bottom: 10px;
padding-bottom: 10px;
}
.filter-section:last-of-type {
border-bottom: none;
margin-bottom: 0;
}
.filter-toggle {
cursor: pointer;
padding-right: 20px;
position: relative;
font-size: 16px;
font-weight: bold;
margin: 0 0 10px 0;
}
.filter-toggle::after {
content: '^';
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%) rotate(180deg);
transition: transform 0.2s ease-in-out;
}
.filter-toggle.active::after {
transform: translateY(-50%) rotate(0deg);
}
.filter-content {
display: none;
max-height: 200px; overflow-y: auto;
padding-right: 5px; } .filter-list, .child-filter-list {
list-style: none;
padding: 0;
margin: 0;
}
.child-filter-list {
padding-left: 20px;
}
.filter-list li {
margin-bottom: 8px;
display: flex;
align-items: center;
} .filter-list input[type="checkbox"] {
display: none; }
.filter-list label {
cursor: pointer;
position: relative;
padding-left: 25px;
line-height: 18px;
}
.filter-list label::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 16px;
height: 16px;
border: 1px solid #ccc;
background: #fff;
border-radius: 3px;
}
.filter-list input[type="checkbox"]:checked + label::after {
content: '✓';
position: absolute;
left: 4px;
top: 0px;
color: #84c733;
font-size: 14px;
font-weight: bold;
} .filter-clear-section {
margin-top: 20px;
}
#clear-filters-btn {
width: 100%;
background-color: #84c733;
color: #fff;
border: none;
padding: 10px;
font-size: 16px;
font-weight: bold;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}
#clear-filters-btn:hover {
background-color: #73b027;
}