/* - - - - - [Start] G E N E R A L Setting Style - - - - -  */
/* #region */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  position: relative;
  font-family: 'Kanit', sans-serif;
  line-height: 1.5;
  background: #f9f9f9;
  color: #292929;
  z-index: 0;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/86390.jpg')  center center;
  background-size: cover;
  z-index: -1;
  opacity: 0.04;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}
h3 {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 1.25rem 0 0.75rem 0;
  line-height: 1.3;
}
h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.4;
}
h5 {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.75rem 0 0.5rem 0;
  line-height: 1.4;
}
p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
input, button, textarea, select {
  font: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  width: 100%;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}
.cement-truck-animation img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}
.cement-truck-animation .pouring {
  width: 20px;
  height: 100px;
  animation: pour 2s infinite ease-in-out;
  margin: 0 auto;
  border-radius: 5px;
}
@keyframes pour {
  0% { height: 0; opacity: 0.2; }
  50% { height: 80px; opacity: 1; }
  100% { height: 0; opacity: 0.2; }
}
.cement-truck-animation p {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 0px;
}


/* animation */

.my-custom-animation {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.my-custom-animation.start-animation {
    animation: fadeInUp 1s ease-in-out forwards;
}


.fadeInLeft-animation {
    opacity: 0;
    transform: translateX(-20px); 
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInLeft-animation.start-animation {
    animation: fadeInLeft 1s ease-in-out forwards;
}


.fadeInRight-animation {
    opacity: 0;
    transform: translateX(20px); 
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInRight-animation.start-animation {
    animation: fadeInRight 1s ease-in-out forwards;
}


.zoomIn-animation {
    opacity: 0;
    transform: scale(0.8); 
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoomIn-animation.start-animation {
    animation: zoomIn 1s ease-in-out forwards;
}


.fadeInDown-animation {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown-animation.start-animation {
    animation: fadeInDown 1s ease-in-out forwards;
}


.fadeInUpBig-animation {
    opacity: 0;
    transform: translateY(100px);
}

@keyframes fadeInUpBig {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUpBig-animation.start-animation {
    animation: fadeInUpBig 1s ease-in-out forwards;
}


.fadeIn-animation {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn-animation.start-animation {
    animation: fadeIn 1s ease-in-out forwards;
}


/* #endregion */
/* = = = = = [End] G E N E R A L Setting = = = = = */



/* ====== [Start] F I X E D B O X SECTION ============ */
/* #region */

.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px; 
}
.messenger-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.messenger-btn {
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.messenger-btn:hover {
    transform: scale(1.1);
}
.facebook-id-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 60px;
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: visibility 0.3s, opacity 0.3s ease;
    font-size: 14px;
    cursor: pointer;
}
.messenger-btn-wrapper:hover .facebook-id-popup {
    visibility: visible;
    opacity: 1;
}
.line-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.line-btn {
    width: 50px;
    height: 50px;
    background-color: #06c755;
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease;
}
.line-btn:hover {
    transform: scale(1.1);
}
.line-id-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 60px; 
    background-color: #06c755;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: visibility 0.3s, opacity 0.3s ease;
    font-size: 14px;
}
.line-id-popup {
    cursor: pointer; 
}
.line-btn-wrapper:hover .line-id-popup {
    visibility: visible;
    opacity: 1;
}
.to-heaven-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b40000, #ff4d4d);
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none; /* เริ่มต้นซ่อนไว้ */
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-heaven-btn:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}
/* #endregion */
/* = = = = = [End] F I X E D B O X SECTION = = = = = */



/* ====== [Start] C O O K I E SECTION ============ */
/* #region */

.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    color: #333;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: none; 
    pointer-events: none;
}

.cookie-banner.show {
    display: flex; 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-icon {
    font-size: 24px;
    color: #d32f2f; 
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.cookie-content a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.cookie-actions .btn-accept {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.cookie-actions .btn-accept:hover {
    background: #b71c1c;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
        flex-direction: column;
        text-align: center;
    }
}
/* #endregion */
/* = = = = = [End]C O O K I E SECTION = = = = = */

:root {
    --primary-red: #D60000;
    --dark-red: #8B0000;
    --text-main: #2D3436;
    --text-light: #636E72;
    --bg-gray: #F9F9F9;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

.breadcrumb-section {
    padding-left: 50px;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 20px 0;
    background: var(--bg-gray);
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb-nav a { color: var(--text-light); text-decoration: none; }
.breadcrumb-nav .active { color: var(--primary-red); font-weight: 500; }



/* Skeleton detail product page */
.skeleton-loading {
    background: #e0e0e0;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    border: none;
    color: transparent !important; 
    pointer-events: none; 
    user-select: none;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    display: block;
}

.skeleton-title {
    width: 60%;
    height: 28px;
    margin-bottom: 15px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-button {
    width: 120px;
    height: 40px;
    border-radius: 8px;
}



/* Skeleton all class */
body[data-loading="true"] .use-skeleton {
    position: relative;
    overflow: hidden;
    pointer-events: none; 
    user-select: none;
}

body[data-loading="true"] .use-skeleton::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    z-index: 10;
    border-radius: inherit;
}

body[data-loading="true"] .use-skeleton img,
body[data-loading="true"] .use-skeleton h1,
body[data-loading="true"] .use-skeleton h2,
body[data-loading="true"] .use-skeleton p,
body[data-loading="true"] .use-skeleton button {
    visibility: hidden;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}