/*
Theme Name: Devkit Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
li.product-default .rating-wrap {
    margin-left: unset !important;
    margin-right: auto;
}

.single_add_to_cart_button{
	padding: 3px 25px !important;
	border-radius: 10px;
}

.elementor-element-24b1101 .sidebar-menu > li.menu-item > .arrow {
	top: unset !important;
}

.custom-widget .sidebar-menu > li.menu-item > .arrow {
	font-size: unset !important;
	transform: unset !important;
}
.elementor-element-3850015 .sidebar-menu > li.menu-item > .arrow {
	top: calc(14.5px / 2 + 5.5px / 2 - 6px) !important;
}

/* Ẩn quick view trong mọi layout Porto */
.quickview,
.porto-tb-quickview,
.add-links-wrap .quickview,
.tb-hover-content .porto-tb-quickview {
  display: none !important;
  visibility: hidden !important;
}



/* chống ngắt chữ */
/* Ngăn trình duyệt tự ngắt chữ kỳ quặc */
p, span, div {
  word-break: normal !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* hiệu chỉnh css budle category */

.archive .product-small .category,
.related .product-small .category {
  background: linear-gradient(270deg, #ff5f00, #ff0000, #ff5f00);
  background-size: 600% 600%;
  animation: fireGlow 3s ease infinite;
  color: #fff;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  display: inline-block;
  box-shadow: 0 0 5px rgba(255, 60, 0, 0.6);
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
}

@keyframes fireGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.archive .product-small .category:hover,
.related .product-small .category:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

/* chỉnh sửa khoãng cách tab thong tin chi tiet va add to cart */
.woocommerce-tabs .nav li.active a, .woocommerce-tabs .nav li:hover a {
	border-radius: 5px;
}
.woocommerce-tabs {
	  border-radius: 5px;
}
@media (max-width: 549px) {
    .woocommerce-tabs {
        margin-top: 15px;
    }
}
@media (max-width: 768px) {
    .woocommerce-tabs {
        margin-top: 15px;
    }
}
.badge-inner.on-sale {
	  background-color: #e59c00 !important;
}

/* hiệu ứng cho budle khuyen mai */

.badge-inner.on-sale {
  background: linear-gradient(135deg, #d1ff00, #ff2bef); /* Gradient màu cam-hồng bắt mắt */
  color: #fff;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(255, 75, 43, 0.4);
  animation: pulseBadge 1.2s infinite;
  transition: transform 0.3s ease;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.5);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 75, 43, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
  }
}

/* bo sung hieu ung cho phân trang */

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.woocommerce nav.woocommerce-pagination ul li {
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 3px 5px 5px 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  color: #333;
  transition: 0.2s ease;
  min-width: 36px;
  text-align: center;
  font-weight: 500;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: #ff6600;
  color: white;
  border-color: #ff6600;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 480px) {
  .woocommerce nav.woocommerce-pagination ul {
    gap: 5px;
  }

  .woocommerce nav.woocommerce-pagination ul li a,
  .woocommerce nav.woocommerce-pagination ul li span {
    padding: 3px 5px 5px 5px;
    font-size: 14px;
    min-width: 30px;
  }
}

/* css phần lọc woo */

/* === SORT BUTTONS STYLE === */
.custom-sorting-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.sort-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
  font-weight: 400;
}

.sort-btn:hover {
  background-color: #e0e0e0;
}

.sort-btn.active {
  background-color: #ff6600;
  color: white;
  border-color: #ff6600;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .custom-sorting-buttons {
    justify-content: left;
    margin-top: 10px;
  }

  .sort-btn {
    font-size: 13px;
    padding: 5px 10px;
  }
}

/* water mark */

/* Watermark cho danh sách sản phẩm */
.product-small .box-image,
.woocommerce ul.products li.product .box-image {
  position: relative;
}

.product-small .box-image::after,
.woocommerce ul.products li.product .box-image::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 50px;
  height: 50px;
  background: url('https://devkit.vn/wp-content/uploads/2025/06/logo-DEVKIT-e1750822272423.png') no-repeat center center;
  background-size: contain;
  opacity: 0.4;
  pointer-events: none;
  z-index: 9;
}

/* Watermark cho ảnh chính trong trang chi tiết sản phẩm */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  position: relative;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 60px;
  height: 60px;
  background: url('https://devkit.vn/wp-content/uploads/2025/06/logo-DEVKIT-e1750822272423.png') no-repeat center center;
  background-size: contain;
  opacity: 0.4;
  pointer-events: none;
  z-index: 9;
}
/* css quan trọng cho kích thước đồng đều giữa các session page và category */
#main {
	  padding-bottom: 1.25rem;
    padding-top: 2.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}


/* css hộp quà cho danh mục themes */
.hop-qua-anim {
    display: inline-block;
    margin-left: 5px;
    animation: laccuqua 1s infinite ease-in-out;
    transform-origin: center;
    font-size: 18px;
    color: red; /* tuỳ chỉnh màu */
}

@keyframes laccuqua {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

/* css sửa checkout */
/* === RESET CƠ BẢN === */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #0056d2;
    outline: none;
}

/* === TIÊU ĐỀ VÀ NHÃN === */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-checkout-review-order h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.woocommerce form .form-row label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

/* === KHUNG FORM === */
.woocommerce-billing-fields,
.woocommerce-additional-fields {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

/* === CHECKBOX ĐIỀU KHOẢN === */
.woocommerce-terms-and-conditions-wrapper span {
    font-size: 11px;
}
/* === NÚT ĐẶT HÀNG === */
#place_order {
    background-color: #0056d2 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 10px;
    width: 100%;
    transition: background-color 0.3s ease;
    border: none;
}

#place_order:hover {
    background-color: #003b9c !important;
}
/* === ẨN PHẦN KHÔNG CẦN THIẾT (nếu cần) === */
.woocommerce-additional-fields,
.woocommerce-shipping-fields,
.woocommerce form .form-row.notes,
.woocommerce form .form-row.billing_company {
    display: none !important;
}


/* thay đổi css khung khuyến mãi trong sản phẩm đơn */
.policy-sale .HTML {
border: 1px solid #ff5722;
    border-radius: 5px;
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 20px;
}

.policy-sale .title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(-45deg, #ff5722, #ff9800, #ffc107, #ff5722);
    background-size: 400% 400%;
    animation: moveBG 6s ease infinite;
}

/* Gradient animation */
@keyframes moveBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.policy-sale .title:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
    transition: all 0.3s ease;
}



.policy-sale .content {
	margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-sale .s1,
.policy-sale .s2 {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid #d0e9d0;
    border-left: 5px solid #4caf50;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    line-height: 1.4;
}

.policy-sale .s2 {
    border-left-color: #f44336;
}

.policy-sale img {
    width: 20px;
	  top: 14px !important;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    margin: 0;
}
.policy-sale .s1:hover, .policy-sale .s2:hover {
    background: #f0fff2;
}

/* css lỗi trang 404 */

  /* CSS riêng cho trang 404 */
  .custom-404-wrapper {
    background-color: #0e0e0e;
    color: #00fff7;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    text-align: center;
    padding: 100px 20px;
    /* min-height: 80vh; */
    position: relative;
    overflow: hidden;
  }

  .custom-404-wrapper h1 {
    font-size: 140px;
    font-weight: 900;
    background: linear-gradient(to right, #00f9ff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px #00fff7;
    animation: flicker404 1.5s infinite alternate;
    margin-bottom: 20px;
  }

  .custom-404-wrapper p {
    font-size: 1.4rem;
    color: #c0c0c0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .custom-404-wrapper a.button-404 {
    background: #00fff7;
    color: #000;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 0 15px #00fff7;
    transition: 0.3s ease;
    display: inline-block;
    margin-top: 20px;
  }

  .custom-404-wrapper a.button-404:hover {
    background: transparent;
    color: #00fff7;
    border: 2px solid #00fff7;
    box-shadow: 0 0 30px #00fff7;
    transform: scale(1.05);
  }

  @keyframes flicker404 {
    0% { opacity: 1; text-shadow: 0 0 5px #00fff7; }
    100% { opacity: 0.8; text-shadow: 0 0 20px #00fff7, 0 0 35px #00bfff; }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .custom-404-wrapper h1 {
      font-size: 80px;
    }
    .custom-404-wrapper p {
      font-size: 1.1rem;
    }
  }

/* button add to cart new */

.single_add_to_cart_button.button.alt {
    background-color: #ff5722 !important; /* màu cam đỏ đậm */
    color: #fff !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px !important;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    border: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

.single_add_to_cart_button.button.alt:hover {
    background-color: #ff7043; /* nhạt hơn chút khi hover */
    box-shadow: 0 6px 14px rgba(255, 87, 34, 0.4);
}

.single_add_to_cart_button.button.alt:hover {
    background: linear-gradient(135deg, #ff5722, #ffb300);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.6);
}

/*
.single_add_to_cart_button.button.alt::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    transition: all 0.6s ease;
}
*/
.single_add_to_cart_button.button.alt:hover::after {
    left: 120%;
}

.single_add_to_cart_button::before {
  font-family: "Font Awesome 6 Free"; /* hoặc 5 tùy bản */
  font-weight: 900;
  content: "\f07a"; /* icon cart */
  margin-right: 8px;
  color: white;
}


@media (max-width: 768px) {
  .single_add_to_cart_button.button.alt {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
  }

  .single_add_to_cart_button.button.alt::before {
    line-height: 1;
    margin: 0;
    display: inline-block;
  }
}

/* css giá giảm và chưa giảm */

/* Vùng giá chung */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Giá cũ */
.woocommerce del {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Giá mới */
.woocommerce ins {
    color: #e53935; /* Màu đỏ bắt mắt */
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    background: #ffeaea;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Nếu muốn in đậm toàn bộ */
.woocommerce del,
.woocommerce ins {
    font-family: 'Arial', sans-serif;
}


.free-price {
  display: inline-block;
    padding: 6px 14px 6px 5px;
    border-radius: 5px;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1fdae3, #0da4ef);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 4px 15px rgb(50 220 236 / 40%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.free-price::before {
  content: "";
  font-size: 14px;
}

.free-price::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
  z-index: 0;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* login css */

.custom-account-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .custom-account-container {
    padding: 0px;
  }
}

.custom-account-container label {
	color: #222 !important;
}

.custom-account-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.custom-account-column {
  flex: 1 1 45%;
  min-width: 300px;
}

.custom-account-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.custom-account-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-account-columns {
    flex-direction: column;
  }
}

/* ===== HIỆU ỨNG THÊM VÀO ===== */

/* Nút Login/Register hover */
.woocommerce-button,
.woocommerce-Button {
	background-color: #0073aa;
	color: #fff;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
	width: 100%;
}

.woocommerce-button:hover,
.woocommerce-Button:hover {
	background-color: #005f8d;
	box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
	transform: translateY(-2px);
}

/* Input khi focus */
.woocommerce-Input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
	background-color: #fff;
	transition: box-shadow 0.3s ease;
}

/* Box hover */
.custom-account-box {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-account-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* ========================
   🌟 SaaS UI Enhancement
   ======================== */

/* Tông màu chính */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
  --box-bg: #ffffff;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
}

/* Form Container Box */
.custom-account-box {
  background: var(--box-bg);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.custom-account-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Tiêu đề form */
.custom-account-box h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  border: none;
  margin-bottom: 30px;
}

/* Input */
.woocommerce-Input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.woocommerce-Input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  outline: none;
  background-color: #fff;
}

/* Button */
.woocommerce-button,
.woocommerce-Button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  width: 100%;
  transition: background-color var(--transition), transform 0.2s ease, box-shadow var(--transition);
}

.woocommerce-button:hover,
.woocommerce-Button:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

/* Link forgot password */
.woocommerce-LostPassword a {
  display: block;
  margin-top: 12px;
  color: var(--primary-color);
  text-align: right;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.woocommerce-LostPassword a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Checkbox Remember Me */
.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  margin-top: 15px;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

/* Responsive nhẹ */
@media (max-width: 768px) {
  .custom-account-box {
    padding: 30px;
  }
}

/* css bổ sung nhắc nhở dưới checkout */

.custom-checkout-note {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* code ẩn cột số lượng */

/* Ẩn cột Số lượng trong bảng giỏ hàng WooCommerce */
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity {
  display: none !important;
}

/* Ẩn Subtotal (Tổng tạm tính) trong giỏ hàng */
.woocommerce-cart .cart-subtotal,
.woocommerce-cart .cart-subtotal * {
  display: none !important;
}

/* Ẩn dòng Subtotal (Tạm tính) ở trang Checkout */
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .cart-subtotal * {
  display: none !important;
}

/* Ẩn cột Subtotal trong giỏ hàng WooCommerce */
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
  display: none !important;
}

/* thuoc tinh lable */

.variations tr th.label {
    display: block;
    width: 100%;
    font-weight: bold;
    margin-bottom: 6px;
}

.variations tr td.value {
    display: block;
    width: 100%;
}

.variations td.value .swatch,
.variations td.value select {
    margin-top: 5px;
    display: inline-block;
}

.variations td.value .swatch {
    margin: 5px 8px 5px 0;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: 0.2s;
}

.variations td.value .swatch.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.price-from {
	color: #5e0997;
}

/*

.custom-sorting-buttons {
    display: none !important;
}
*/

/* Ẩn badge trong quick view popup */
.quick-view-content .ftechx-badge-an-toan {
  display: none !important;
}

/* code new 2-10-2025 */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.product-col {
    flex: 1 1 calc(25% - 15px); /* 4 cột, trừ khoảng cách 20px chia đôi */
    margin: 0 10px 20px 0;
    box-sizing: border-box;
}

.product-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image, .product-content {
    width: 100%;
}

.product-content {
    text-align: left;
}

@media (max-width: 1200px) {
    .product-col {
        flex: 1 1 calc(33.33% - 13.33px); /* 3 cột cho màn hình lớn hơn tablet */
    }
}

@media (max-width: 768px) {
    .product-col {
        flex: 1 1 calc(50% - 10px); /* 2 cột cho tablet */
    }
}

@media (max-width: 480px) {
    .product-col {
        flex: 1 1 100%; /* 1 cột cho mobile */
        margin-right: 0;
    }
}


/* thay đổi layout hiển thị */

/* ===========================================
   FTECHX — WooCommerce Review Premium Style
   Inspired by TheGioiDiDong x Porto Shop40
   =========================================== */

/* Tổng thể */
.woocommerce-Reviews {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 40px 45px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* Dải ánh sáng nhẹ trên đầu */
.woocommerce-Reviews::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff8800, #ff6600, #ffaa00);
    opacity: 0.9;
}

/* Tiêu đề chính */
.woocommerce-Reviews h2,
.woocommerce-Reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-Reviews h2::before {
    content: "⭐";
    font-size: 20px;
    color: #ff8800;
}

/* Dòng mô tả “Hãy là người đầu tiên đánh giá…” */
.woocommerce-Reviews .comment-reply-title {
    font-size: 18px;
    color: #444;
    font-weight: 600;
    margin-bottom: 25px;
    border-left: 4px solid #ff8800;
    padding-left: 12px;
}

/* Khối rating */
.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* ======================
   SAO ĐÁNH GIÁ
   ====================== */
p.stars {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

p.stars a {
    font-size: 30px;
    color: #ddd;
    transition: all 0.3s ease;
    text-shadow: 0 0 2px rgba(0,0,0,0.05);
}

p.stars a:hover,
p.stars a.active {
    color: #ffcc00;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

/* Animation sao “thở nhẹ” */
@keyframes glowPulse {
    0% { text-shadow: 0 0 5px rgba(255,204,0,0.3); transform: scale(1);}
    50% { text-shadow: 0 0 12px rgba(255,204,0,0.6); transform: scale(1.05);}
    100% { text-shadow: 0 0 5px rgba(255,204,0,0.3); transform: scale(1);}
}

p.stars a.active {
    animation: glowPulse 1.5s infinite ease-in-out;
}

/* ======================
   TEXTAREA
   ====================== */
.comment-form textarea {
    width: 100%;
    min-height: 140px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 15px 18px;
    font-size: 16px;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    background: #fff;
    border-color: #ff8800;
    box-shadow: 0 0 10px rgba(255,136,0,0.25);
    outline: none;
}

/* ======================
   INPUTS (nếu có thêm họ tên, email)
   ====================== */
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 15px;
    background: #fafafa;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
    background: #fff;
    border-color: #ff8800;
    box-shadow: 0 0 8px rgba(255,136,0,0.2);
    outline: none;
}

/* ======================
   NÚT GỬI
   ====================== */
.comment-form input[type="submit"] {
    background: linear-gradient(135deg, #ff8800, #ff6600);
    color: #fff;
    font-weight: 700;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,102,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff9900, #ff6a00);
    box-shadow: 0 8px 20px rgba(255,102,0,0.4);
    transform: translateY(-2px);
}

/* ======================
   DANH SÁCH REVIEW (nếu có)
   ====================== */
.woocommerce-Reviews .commentlist {
    margin-top: 35px;
}

.woocommerce-Reviews .commentlist li {
    background: #fffdf8;
    border-radius: 14px;
    border: 1px solid #f5e3c4;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.woocommerce-Reviews .commentlist li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.woocommerce-Reviews .commentlist li .meta strong {
    color: #ff6600;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .woocommerce-Reviews {
        padding: 25px;
    }

    .woocommerce-Reviews h2 {
        font-size: 20px;
    }

    .comment-form input[type="submit"] {
        width: 100%;
    }
}

/* ẩn breadcrumb */
.breadcrumbs-wrap ul.breadcrumb li:nth-child(2) {
  display: none !important;
}

/* ================================================
   FTECHX — WooCommerce Product Card (Layout & Image)
   Version: 1.1 — by Mr.B & FTECHX SOLUTIONS
   ================================================ */

/* ======= GRID CHUNG ======= */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ======= CARD SẢN PHẨM ======= */
ul.products li.product {
  background: linear-gradient(180deg, #fff, #fafafa);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #f3f3f3;
}

ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

/* ======= ẢNH SẢN PHẨM ======= */
.product-inner .product-image {
  overflow: hidden;
  border-bottom: 1px solid #f2f2f2;
  position: relative;
}

.product-inner .product-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
  display: block;
}

/* Hiệu ứng hover ảnh */
ul.products li.product:hover .product-image img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* ======= HIỆU ỨNG VIỀN ÁNH SÁNG NHẸ ======= */
ul.products li.product::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(0,123,255,0.08), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

ul.products li.product:hover::before {
  opacity: 1;
}
/* ===== NÚT MUA ===== */
.add-links-wrap {
  margin-top: auto;
}

.add-links .button {
  border-radius: 5px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  ul.products {
    gap: 18px;
  }

  ul.products li.product {
    border-radius: 15px;
  }

  .product-inner .product-image img {
    height: 160px;
  }
}

/* ================================
   💎 FTECHX STYLE — TYPE BUILDER PRODUCT LIST
   Áp dụng riêng cho section .ftechx-archive-products
   ================================ */

.ftechx-archive-products .porto-tb-item.product {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  padding: 15px;
  border: 1px solid #f0f0f0;
  position: relative;
}

.ftechx-archive-products .porto-tb-item.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* === ẢNH SẢN PHẨM === */
.ftechx-archive-products .porto-tb-item.product .product-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.ftechx-archive-products .porto-tb-item.product:hover .product-image img {
  transform: scale(1.05);
}

/* === BADGE 100% AN TOÀN === */
.ftechx-archive-products .porto-tb-item.product::before {
  content: "🛡️ 100% an toàn";
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffeb3b;
  color: #2e7d32;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 5;
}

/* === DANH MỤC === */
.ftechx-archive-products .porto-tb-item.product .tb-meta-product_cat {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
}

/* === TIÊU ĐỀ === */
.ftechx-archive-products .porto-tb-item.product .post-title a {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  min-height: 40px;
}

.ftechx-archive-products .porto-tb-item.product .post-title a:hover {
  color: #ff9800;
}

/* === GIÁ === */
.ftechx-archive-products .porto-tb-item.product .price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-top: 6px;
  display: block;
}

/* === NÚT MUA NGAY === */
.ftechx-archive-products .porto-tb-item.product .porto-tb-addcart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  margin-top: 10px;
  transition: all 0.25s ease;
}

.ftechx-archive-products .porto-tb-item.product .porto-tb-addcart:hover {
  background: #ff9800;
  color: #fff !important;
  transform: translateY(-2px);
}

/* === ẨN NHỮNG THỨ KHÔNG CẦN === */
.ftechx-archive-products .porto-tb-item.product .rating-wrap,
.ftechx-archive-products .porto-tb-item.product .porto-tb-quickview {
  display: none !important;
}

/* === GRID CĂN ĐỀU === */
.ftechx-archive-products .porto-tb-list,
.ftechx-archive-products .elementor-widget-container ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
}


