@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body,
body.single-product,
body.single-product .site,
body.single-product #page {
    background-color: #E3E3E3 !important; 
    overflow-x: hidden;
}

.woocommerce-breadcrumb {
    max-width: 100vw;
    margin: 20px auto 0;
    padding: 0 50px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #747965;
    box-sizing: border-box;
}
.woocommerce-breadcrumb a {
    text-decoration: none;
    color: #747965;
}
.woocommerce-breadcrumb a:hover {
    color: #000;
}

.woo-single-back-btn,
.mobile-back-btn {
    display: none !important;
}

.single-container.woo-single-container {
    width: 100vw;
    margin: 20px 0 80px 0;
    padding: 0 50px;
    background: #E3E3E3;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.custom-product-layout {
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    gap: 60px;
    align-items: stretch; 
    max-width: 100%;
    min-height: 600px;
    height: auto;
}
.custom-product-layout > * {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.custom-product-layout > .product-gallery-wrapper { 
    animation-delay: 0.1s; 
}
.custom-product-layout > .product-info-wrapper { 
    animation-delay: 0.2s; 
    justify-content: space-between;
}

.custom-product-layout .product-gallery-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
}
.custom-product-layout .woocommerce-product-gallery {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    margin-bottom: 0 !important;
}
.woocommerce-product-gallery__image {
    flex-grow: 1; 
    width: 100%;
    display: flex; 
    align-items: stretch; 
    position: relative;
    aspect-ratio: 1 / 1 !important;
}
.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
}
.woocommerce-product-gallery__image img {
    border: none; 
    object-fit: cover; 
    width: 100%;
    height: 100% !important;
    display: block; 
    aspect-ratio: 1 / 1 !important;
}
.woocommerce-product-gallery__trigger {
    border: 1px solid #747965 !important;
    background: #E3E3E3 !important;
}
.woocommerce-product-gallery .flex-control-nav {
    display: flex; 
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 0 !important;
    padding: 0 !important;
    flex-shrink: 0; 
    width: 100%;
}
.woocommerce-product-gallery .flex-control-nav li {
    float: none;
    flex: 1;
    list-style: none;
    margin-bottom: 0 !important;
}
.woocommerce-product-gallery .flex-control-nav li:nth-child(n+5) {
    display: none;
}
.woocommerce-product-gallery .flex-control-nav li img {
    border: none; 
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    width: 100%;
    display: block;
}

.custom-product-layout .summary.product-info-wrapper {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.product-info-top {
    width: 100%;
}

.product-info-wrapper .custom-product-categories-list {
    font-family: 'clearfacestd', 'Times New Roman', serif !important;
    line-height: 1.8; 
    margin-bottom: 10px; 
}
.product-info-wrapper .custom-product-categories-list a {
    font-size: 12px;
    font-weight: 400 !important;
    text-transform: uppercase;
    text-decoration: none;
    color: #3A4237;
    background-color: transparent;
    border: 1px solid #747965;
    border-radius: 15px; 
    padding: 4px 12px;
    margin-right: 6px; 
    margin-bottom: 6px;
    display: inline-block; 
    transition: all 0.2s ease;
    font-family: 'clearfacestd', 'Times New Roman', serif !important;
}
.product-info-wrapper .custom-product-categories-list a:hover {
    background-color: #747965;
    color: #fff;
}

.product-info-wrapper .product_title {
    font-size: 60px !important; 
    font-family: 'clearfacestd', 'Times New Roman', serif; 
    font-weight: 400 !important; 
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px; 
}

.product-info-wrapper p.price {
    font-family: 'moulin', 'Times New Roman', serif; 
    font-size: 30px !important; 
    font-weight: 400 !important; 
    color: #3A4237;
    margin-bottom: 25px; 
}

.product-info-wrapper .woocommerce-product-details__short-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400; 
    font-size: 14px; 
    line-height: 1.6;
    margin-bottom: 20px;
}
.product-info-wrapper .woocommerce-product-details__short-description p {
    margin-bottom: 0;
}

.product-info-wrapper .product-info-divider {
    border: 0;
    border-top: 1px solid #747965;
    margin: 20px 0;
}

.custom-product-attributes {
    font-family: 'Inter', sans-serif;
    margin-bottom: 30px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.attribute-item {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 10px;
    line-height: 1.5;
}
.attribute-item .attribute-label {
    font-weight: 600; 
    color: #747965;
    margin-right: 8px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}
.attribute-item .attribute-value {
    color: #414040;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}
.attribute-item .attribute-value p {
    margin: 0;
    display: inline;
}

.product-form-wrapper {
    margin-top: auto; 
    padding-top: 20px;
    width: 100%;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.quantity-container {
    flex-shrink: 0;
    width: 140px;
    height: 55px;
    display: flex;
    align-items: center;
    border: 1px solid #747965;
    background: #E3E3E3;
    margin: 0;
    box-sizing: border-box;
}

.quantity-container .qty {
    flex: 1;
    height: 100%;
    border: none !important;
    background: transparent !important;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    color: #3A4237;
}

.quantity-container .qty-btn {
    width: 45px;
    height: 100%;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #747965;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    margin: 0;
}

.quantity-container .qty-btn:hover {
    background-color: #D3D3D3;
    color: #000;
}

.quantity-container .qty::-webkit-outer-spin-button,
.quantity-container .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-now-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 55px;
    margin: 0;
    padding-left: 20px;
}

.buy-now-btn {
    background-color: #3A4237 !important;
    color: #fff !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: 'moulin', 'Times New Roman', serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    
    transition: background-color 0.3s ease, color 0.3s ease !important;
    
    text-align: center !important;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    margin: 0 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    transform: none !important;
    translate: none !important;
}

.buy-now-btn:hover,
.buy-now-btn:focus,
.buy-now-btn:active,
.buy-now-btn.loading,
.buy-now-btn.added {
    background-color: #000 !important;
    color: #fff !important;
    transform: none !important; 
    translate: none !important;
    padding: 0 !important; 
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.buy-now-btn.loading::after,
.buy-now-btn::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.buy-now-btn .blockUI.blockOverlay {
    display: none !important;
    visibility: hidden !important;
}

.woocommerce-product-rating {
    display: none;
}

.product-bottom-content {
    margin-top: 0px;
    grid-column: 1 / -1; 
}
.woocommerce-tabs {
    display: none;
}

.product-page-center-logo {
    text-align: center;
    margin: 40px auto; 
    max-width: 100vw;
    padding: 0 50px; 
    box-sizing: border-box;
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.product-page-center-logo .logo-svg-wrapper {
    display: block;
    width: 150px;
    height: 80px; 
    margin: 0 auto;
    background-color: #BCC3AC;
    mask-image: url('https://daune.my/wp-content/uploads/2025/11/VariantIcon.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.related-posts-section {
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    padding-top: 80px; padding-bottom: 40px;
    margin-top: 0; 
    background: #E3E3E3; 
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both 0.2s;
}
.related-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 400; 
    font-family: 'clearfacestd', 'Times New Roman', serif; 
}

.related-products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px; 
    max-width: 100vw;
    margin: 0 auto;
    padding-left: 50px; 
    padding-right: 50px; 
    box-sizing: border-box;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.related-products-grid::-webkit-scrollbar {
    display: none;
}

.related-products-grid .custom-product-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column; 
    height: 100%; 
    padding: 15px 15px 0px 15px;
    box-sizing: border-box;
    background: #E3E3E3;
    border: 1px solid #747965;
    box-shadow: none;
}

.related-products-grid .custom-product-card .card-image-wrapper {
    position: relative;
    overflow: hidden; 
    margin: -15px -15px 12px -15px; 
    border-bottom: none; 
}
.related-products-grid .custom-product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; 
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 0.3s ease;
}
.related-products-grid .custom-product-card:hover img {
    transform: scale(1.05); 
}
.related-products-grid .custom-product-card .woocommerce-loop-product__title {
    font-family: 'moulin', 'Times New Roman', serif !important;
    font-weight: 400 !important;
    font-size: 22px !important; 
    color: #3A4237 !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    margin: 0 0 5px 0 !important; 
    white-space: normal;
}
.related-products-grid .card-categories,
.related-products-grid .card-categories a {
    font-family: 'clearfacestd', 'Times New Roman', serif !important;
    font-weight: 400 !important;
    font-size: 14px !important; 
    color: #3A4237 !important; 
    padding: 0;
    margin-bottom: 10px;
    text-decoration: none;
}
.related-products-grid .card-categories a:hover {
    color: #000 !important;
}
.related-products-grid .card-divider {
    border: none;
    border-top: 1px solid #888D7E !important; 
    margin: 0 0 10px 0;
}
.related-products-grid .card-description {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important; 
    color: #3A4237 !important; 
    padding: 0;
    line-height: 1.5;
    flex-grow: 1; 
    margin-bottom: 0px;
}
.related-products-grid .card-description p {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical;
    white-space: normal;
}
.related-products-grid .card-price-addtocart {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px 0;
    margin-top: auto; 
}
.related-products-grid .card-price-addtocart .price {
    font-family: 'clearfacestd', 'Times New Roman', serif !important;
    font-weight: 400 !important;
    font-size: 30px !important; 
    color: #3A4237 !important;
    line-height: 1; 
    margin-top: 10px;
}
.related-products-grid .add-to-cart-wrapper .button {
    font-family: 'moulin', 'Times New Roman', serif !important;
    font-weight: 400 !important;
    font-size: 12px !important; 
    background-color: #E3E3E3 !important;
    color: #3A4237 !important;
    border: 1px solid #3A4237; 
    border-radius: 0;
    text-align: center;
    text-transform: uppercase;
    padding: 15px 50px;
}
.related-products-grid .add-to-cart-wrapper .button:hover {
    background-color: #3A4237 !important;
    color: #E3E3E3 !important;
}

.related-products-grid .added_to_cart {
    display: none !important;
}

.wc-forward {
    display: none !important;
}

.woocommerce-message a.button.wc-forward {
    display: none !important;
}

.woocommerce-message {
    background: #E3E3E3 !important;
    border: 1px solid #747965 !important;
    color: #3A4237 !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.woocommerce-message::before {
    color: #3A4237 !important;
}

.woocommerce-message a.button {
    display: none !important;
}

@media (max-width: 1024px) {
    .custom-product-layout {
        gap: 30px;
    }
    .product-info-wrapper .product_title {
        font-size: 48px !important; 
    }
}

@media (max-width: 768px) {
    .woo-single-back-btn,
    .mobile-back-btn {
        display: none !important;
    }
    
    .single-container.woo-single-container {
        width: 100%;
        padding: 0;
        margin: 0 0 40px 0;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        position: relative;
    }
    
    .woocommerce-breadcrumb {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .product-page-center-logo {
        padding: 0 20px;
        max-width: 100%;
        margin: 50px auto 30px auto !important;
    }
    
    .custom-product-layout {
        display: flex !important;
        flex-direction: column;
        min-height: auto; 
        gap: 0; 
        height: auto;
        width: 100%;
    }
    
    .product-gallery-wrapper {
        order: 1; 
        padding: 0 20px;
        height: auto;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }
    
    .product-info-wrapper {
        order: 2; 
        padding: 0 20px;
        margin-top: 40px;
        height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-info-wrapper .custom-product-categories-list {
        margin-top: 20px !important;
        margin-bottom: 15px;
    }
    
    .product-form-wrapper {
        margin-top: 20px;
        padding-top: 0;
    }

    .product-bottom-content {
        order: 3;
    }
    
    .custom-product-layout .woocommerce-product-gallery {
        flex-direction: column; 
        width: 100%;
    }
    
    .woocommerce-product-gallery__image {
        order: 1; 
        height: auto;
        width: 100%;
        aspect-ratio: 1 / 1 !important;
    }
    
    .woocommerce-product-gallery__image img {
        aspect-ratio: 1 / 1 !important; 
        height: auto; 
        width: 100%;
    }
    
    .woocommerce-product-gallery .flex-control-nav {
        order: 2; 
        width: 100%;
    }

    .product-info-wrapper .product_title {
        font-size: 32px !important; 
        line-height: 1.1;
        margin-top: 10px;
    }
    
    .product-info-wrapper p.price {
        font-size: 24px !important; 
    }
    
    .attribute-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .form-row {
        flex-direction: row !important;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .quantity-container {
        width: 100px;
        height: 50px;
    }
    
    .buy-now-container {
        padding-left: 0;
        height: 50px;
    }
    
    .buy-now-btn {
        font-size: 14px !important;
        height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        transform: none !important;
        translate: none !important;
    }
    
    .buy-now-btn.loading, 
    .buy-now-btn.added {
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .buy-now-btn::after,
    .buy-now-btn.loading::after {
        display: none !important;
        width: 0 !important;
        content: "" !important;
    }

    .related-posts-section {
        padding-top: 30px;
        padding-bottom: 30px;
        margin-top: 0;
        order: 4;
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        position: relative;
    }
    
    .related-title {
        font-size: 1.5rem;
    }
    
    .related-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 20px !important; 
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    .related-products-grid .custom-product-card {
        flex: none;
        width: 100%;
        padding: 12px 12px 0px 12px;
        gap: 6px;
        box-sizing: border-box;
    }

    .related-products-grid .custom-product-card .card-image-wrapper {
        margin: -12px -12px 8px -12px;
        width: calc(100% + 24px);
    }
    
    .related-products-grid .custom-product-card img {
        aspect-ratio: 1 / 1;
        width: 100%;
    }
    
    .related-products-grid .card-divider,
    .related-products-grid .card-description {
        display: none;
    }

    .related-products-grid .custom-product-card .woocommerce-loop-product__title {
        font-size: 14px !important;
        margin: 0 !important;
        line-height: 1.2;
    }
    
    .related-products-grid .card-categories,
    .related-products-grid .card-categories a {
        font-size: 10px !important;
        margin-bottom: 0;
    }
    
    .related-products-grid .card-price-addtocart {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: auto;
        width: 100%;
        padding: 15px 0;
    }
    
    .related-products-grid .card-price-addtocart .price {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    .related-products-grid .add-to-cart-wrapper {
        width: 100%;
    }
    
    .related-products-grid .add-to-cart-wrapper .button {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    .site {
        overflow-x: hidden;
        width: 100%;
    }
    
    .single-container.woo-single-container {
        width: 100%;
        padding: 0;
        margin: 0 0 30px 0;
        overflow-x: hidden;
    }
    
    .woocommerce-breadcrumb {
        padding: 0 15px;
        font-size: 11px;
        max-width: 100%;
    }
    
    .product-gallery-wrapper {
        padding: 0 15px;
        width: 100%;
    }
    
    .product-info-wrapper {
        padding: 0 15px;
        margin-top: 30px;
        width: 100%;
    }
    
    .product-info-wrapper .custom-product-categories-list {
        margin-top: 15px !important;
    }
    
    .product-info-wrapper .product_title {
        font-size: 28px !important;
        line-height: 1.1;
        margin-bottom: 8px;
        margin-top: 5px;
    }
    
    .product-info-wrapper p.price {
        font-size: 20px !important;
        margin-bottom: 20px;
    }
    
    .product-info-wrapper .woocommerce-product-details__short-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .custom-product-attributes {
        margin-bottom: 15px;
        gap: 6px;
    }
    
    .attribute-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .attribute-item .attribute-label,
    .attribute-item .attribute-value {
        font-size: 11px;
    }
    
    .product-form-wrapper {
        margin-top: 15px;
        padding-top: 0;
    }
    
    .form-row {
        flex-direction: row !important;
        gap: 10px;
    }
    
    .quantity-container {
        width: 110px;
        height: 45px;
    }

    .quantity-container .qty-btn {
        width: 30px;
        font-size: 16px;
    }
    
    .quantity-container .qty {
        height: 45px;
        font-size: 13px;
    }
    
    .buy-now-container {
        height: 45px;
    }
    
    .buy-now-btn {
        height: 45px !important;
        font-size: 13px !important;
    }
    
    .product-page-center-logo {
        padding: 0 15px;
        margin: 80px auto 50px auto !important;
        max-width: 100%;
    }
    
    .product-page-center-logo .logo-svg-wrapper {
        width: 120px;
        height: 60px;
    }
    
    .related-posts-section {
        padding-top: 20px;
        padding-bottom: 20px;
        width: 100%;
    }
    
    .related-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 !important;
        max-width: 100%;
    }
    
    .related-products-grid .custom-product-card {
        padding: 10px 10px 0px 10px;
        gap: 4px;
    }
    
    .related-products-grid .custom-product-card .card-image-wrapper {
        margin: -10px -10px 6px -10px;
        width: calc(100% + 20px);
    }
    
    .related-products-grid .custom-product-card .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.2;
    }
    
    .related-products-grid .card-categories,
    .related-products-grid .card-categories a {
        font-size: 9px !important;
    }
    
    .related-products-grid .card-price-addtocart {
        padding: 12px 0;
        gap: 4px;
    }
    
    .related-products-grid .card-price-addtocart .price {
        font-size: 16px !important;
    }
    
    .related-products-grid .add-to-cart-wrapper .button {
        padding: 8px;
        font-size: 10px !important;
    }
}