/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */



/* Wrapper chứa ảnh + overlay text */
.wp-block-group.is-layout-constrained {
  position: relative; /* overlay text nằm trong block này */
  display: block;
  width: 100%;
}

/* Overlay text (group con chứa h2 + p) */
.wp-block-group.is-layout-constrained > .wp-block-group.is-layout-constrained {
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 90%;
}

/* Heading trong overlay */
.wp-block-group.is-layout-constrained > .wp-block-group.is-layout-constrained h2 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.wp-block-group.is-layout-constrained > .wp-block-group.is-layout-constrained p {
  margin: 0;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ảnh trong group block */
.wp-block-group.is-layout-constrained figure.wp-block-image.size-full img {
  width: 100%;
  height: auto;
  display: block;
}

.size-full {
  width: 100%;
}


/* Container form */
#wpcf7-f27-p13-o1 form {
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

#wpcf7-f27-p13-o1 p {
  margin: 0;
  padding: 0;
}

/* Label */
#wpcf7-f27-p13-o1 label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2937; /* gần màu text của Blocksy */
  font-size: 14px;
}

/* Input fields */
#wpcf7-f27-p13-o1 input[type="text"],
#wpcf7-f27-p13-o1 input[type="tel"],
#wpcf7-f27-p13-o1 input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #111827;
  background-color: #f9fafb;
  transition: all 0.3s ease;
}

/* Placeholder */
#wpcf7-f27-p13-o1 ::placeholder {
  color: #9ca3af;
}

/* Focus */
#wpcf7-f27-p13-o1 input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
  outline: none;
}

/* Submit button */
#wpcf7-f27-p13-o1 input[type="submit"] {
  width: 100%;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover nút */
#wpcf7-f27-p13-o1 input[type="submit"]:hover {
  background: #2563eb;
}

.fb-page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fb-page, .fb-page iframe {
    width: 100% !important;
}


.fixed-booking-btn {
    position: fixed;
    right: 0;
    top: 100px;
    background-color: #fff;
    color: #333;
    padding: 6px;
    border-radius: 3px;
    font-size: 16px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: transform 0.2s;
}

.fixed-booking-btn i {
    font-size: 25px;
}

.fixed-booking-btn span {
    font-size: 12px;
}

/* Container grid cho testimonials */
ul.feeback {
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Mỗi đánh giá */
ul.feeback li.wp-block-post {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    /* Tùy chọn thêm shadow nếu muốn */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Nội dung trích dẫn */

.feeback .wp-block-post-excerpt {
    height: 120px;
    overflow: hidden;
}
.feeback .wp-block-post-excerpt__excerpt {
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
}

/* Tên khách hàng */
.feeback .wp-block-post-title {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

/* Container grid cho blog posts */
ul.newpost {
    padding: 0;
    list-style: none;
    margin: 0;
    display: grid;
    gap: 20px;
}

/* Mỗi bài viết */
ul.newpost li.wp-block-post {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

ul.newpost li.wp-block-post:hover {
    transform: translateY(-5px);
}
.newpost .wp-block-post-title{
  margin: 0;
}

/* Tiêu đề bài viết */
.newpost .wp-block-post-title a {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    padding: 5px;
}

.newpost .wp-block-post-excerpt{
  margin: 0;
}

/* Nội dung tóm tắt */
.newpost .wp-block-post-excerpt__excerpt {
    color: #333;
    font-style: normal;
    padding: 5px;
}



/* Menu cố định bottom */
#fixed-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #333;
    z-index: 9999;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#fixed-bottom-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

#fixed-bottom-menu ul li{
  display: flex;
  flex-direction: column;
  align-items: center;
}

#fixed-bottom-menu ul li i{
  font-size: 20px;
}

#fixed-bottom-menu ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
}

.recommend{
  display: flex;
}

.sticky-icon-links {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9999;
}

.sticky-icon-links a {
    display: block;
    background: #0068ff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-icon-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.sticky-icon-links img {
    width: 30px;
    height: auto;
    display: block;
}

/* Tổng thể sản phẩm */
.product-entry-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Hero Section */
.product-hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/cat-img-1400x274.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
    z-index: 0;
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 15%);
    z-index: 1;
}

.product-hero-inner {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 20px 0;
    width: var(--theme-block-width);
}

/* Breadcrumb */
.product-breadcrumbs {
    width: 100%;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}
.product-breadcrumbs a:hover {
    color: #fff;
}

/* Hai cột: Gallery + Summary */
.product-content-columns {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
}

/* Summary */
.product-summary {

}


.ct-cart-actions>*{
  width: unset !important;
}

.buy-now-button {
	width: 50% !important;
}

.product-summary .woocommerce-product-details__short-description {
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ct-cart-actions .quantity{
  display: none;
}


/* ----- Phần tabs, mô tả, sản phẩm liên quan ----- */
.product-extra-section {
	width: var(--theme-block-width);
	margin: 20px auto;
}

/* ----- Phần mô tả sản phẩm ----- */
.product-extra-section {
	position: relative;
	background-color: #f9f9f9;
}

.product-extra-section .container {
	margin: 0 auto;
	padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-description-content-title {
	font-size: 18px;
}

.product-description-content {
	line-height: 1.8;
	color: #333;
}

.product-description-content p {
	margin: 0;
}

.product-description-content img {
	max-width: 100%;
	border-radius: 10px;
	margin: 20px 0;
}

/* --- Hero Bottom Box --- */
.product-hero-bottom-box {
    position: relative;
    top: -30px;
    background: #fff;
    display: flex;
    gap: 15px;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    z-index: 10;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Item */
.hero-bottom-item {
    display: flex;
    flex: 0 0 calc(33.333% - 15px);
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 5px;
    width: 90%;
}

.hero-bottom-item .icon {
    font-size: 28px;
    flex-shrink: 0;
}

.hero-bottom-item .text .title {
    display: block;
    color: #555;
    font-weight: 600;
}

.hero-bottom-item .text .desc {
    display: block;
    font-weight: 700;
}

/* Màu */
.hero-bottom-item.purple {
    background: #7e2ea042;
    color: var(--theme-palette-color-9);
}

.hero-bottom-item.green {
    background: #4caf5047;
    color: #4CAF50;
}

.post-list li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--wp--preset--color--palette-color-9);
}

.post-list li:last-child {
  border-bottom: none !important;
}


@media (max-width: 689.98px) {

  body {
        padding-bottom: 60px !important;
      }
    .fixed-booking-btn {
        display: none;
    }
    #fixed-bottom-menu{
      display: block !important;
    }
    .product-content-columns {
		flex-direction: column;
	}
	.product-summary {
		margin-top: 40px;
	}
	.product-hero-section {
		padding: 60px 0;
		min-height: unset;
	}
  .hero-bottom-item {
        flex: 0 0 100%;
    }
}

.product-in-stats{

}

.prod-stats-item{
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
}

.prod-stats-item i{
  font-size: 20px;
  margin-right: 5px;
}

[data-products] {
    grid-column-gap: var(--grid-columns-gap, 10px) !important;
    grid-row-gap: var(--grid-rows-gap, 10px) !important;
}

@media (min-width: 1000px) {
    .ct-default-gallery .entry-summary, .ct-stacked-gallery .entry-summary {
        width: auto !important;
    }
        .ct-default-gallery .product-entry-wrapper, .ct-stacked-gallery .product-entry-wrapper {
        justify-content: space-between;
    }
}