/* Woodmart Product Style CSS */

/* General styles */
.wd-single-product-page {
    font-family: inherit;
    color: #777;
    margin-bottom: 40px;
}

/* Breadcrumbs */
.wd-single-breadcrumbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.wd-products-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.wd-products-nav .wd-back-btn,
.wd-products-nav .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #333;
    text-align: center;
    cursor: pointer;
    background-color: #f1f1f1;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.25s ease;
}

.wd-products-nav .wd-back-btn:hover,
.wd-products-nav .nav-btn:hover {
    background-color: #BD9E5E;
    color: #fff;
}

.wd-prev-product, .wd-next-product {
    position: relative;
}

.wd-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 350;
    visibility: hidden;
    opacity: 0;
    margin-top: 10px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    width: 220px;
    border-radius: 0px;
}

.wd-prev-product .wd-dropdown {
    right: auto;
    left: 0;
}

.wd-prev-product:hover .wd-dropdown,
.wd-next-product:hover .wd-dropdown {
    visibility: visible;
    opacity: 1;
}

.wd-dropdown-inner {
    display: flex;
    align-items: center;
}

.wd-dropdown .product-image {
    flex: 0 0 80px;
    margin-right: 10px;
}

.wd-dropdown .product-info {
    flex: 1;
    line-height: 1.4;
}

.wd-dropdown .product-title {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #242424;
    margin-bottom: 5px;
}

.wd-dropdown .price {
    display: block;
    font-weight: 500;
    color: #BD9E5E;
}

/* Product Images and Gallery */
.wd-product-images {
    position: relative;
    margin-bottom: 30px;
}

.wd-product-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.wd-product-labels .product-label {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #BD9E5E;
    border-radius: 0px;
}

.wd-main-gallery {
    margin-bottom: 20px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wd-main-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
}

.woocommerce-product-gallery__image {
    cursor: pointer;
}

.wd-thumbnails-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.wd-thumb-item {
    flex: 0 0 23%;
    margin: 0 1%;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.wd-thumb-item:hover {
    border-color: #BD9E5E;
}

.wd-thumb-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Product Summary and Information */
.wd-product-summary {
    margin-bottom: 30px;
}

.summary-inner {
    position: relative;
}

.product_title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #BD9E5E;
    font-weight: 600;
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.woocommerce-review-link {
    margin-left: 10px;
    color: #777;
    font-size: 14px;
}

.wd-product-price-wrap {
    margin-bottom: 20px;
}

.price {
    color: #BD9E5E;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.price del {
    color: #BDBDBD;
    font-size: 80%;
    font-weight: normal;
    text-decoration: line-through;
    margin-right: 10px;
}

.price ins {
    text-decoration: none;
}

.woocommerce-product-details__short-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.wd-stock-status {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.4;
}

.in-stock .stock-status {
    color: #0f834d;
    font-weight: 500;
}

.out-of-stock .stock-status {
    color: #e45050;
    font-weight: 500;
}

/* Add to Cart Section */
.wd-add-to-cart-wrap {
    margin-bottom: 30px;
}

.variations {
    margin-bottom: 25px;
}

.variations select {
    height: 40px;
    padding: 0 10px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 14px;
}

.variations td {
    padding: 5px 0;
    border: none;
}

.variations label {
    font-weight: 500;
    margin-bottom: 5px;
}

.single_variation_wrap {
    margin-top: 15px;
}

.woocommerce-variation-description {
    margin-bottom: 10px;
    font-size: 14px;
}

.woocommerce-variation-price {
    margin-bottom: 15px;
    font-size: 24px;
    color: #BD9E5E;
    font-weight: 600;
}

.quantity {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 15px;
}

.quantity input.qty {
    width: 70px;
    height: 45px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 0px;
}

.button.alt {
    background-color: #BD9E5E;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.button.alt:hover {
    background-color: #a68a4f;
}

/* Meta Information */
.wd-product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product_meta {
    font-size: 14px;
    line-height: 1.6;
}

.product_meta > span {
    display: block;
    margin-bottom: 10px;
}

.product_meta .meta-label {
    font-weight: 500;
    color: #242424;
}

/* Product Tabs */
.wd-product-tabs-wrap {
    margin-top: 60px;
    margin-bottom: 60px;
}

.wc-tabs-wrapper {
    position: relative;
}

.wd-tabs-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.wc-tabs {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wc-tabs li {
    position: relative;
    margin-right: 30px;
    margin-bottom: -1px;
}

.wc-tabs li a {
    display: inline-block;
    padding: 15px 0;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    position: relative;
    text-decoration: none;
    transition: color 0.25s ease;
}

.wc-tabs li.active a {
    color: #BD9E5E;
}

.wc-tabs li.active a:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #BD9E5E;
}

.woocommerce-Tabs-panel {
    padding: 20px 0;
    line-height: 1.6;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

/* Related Products Section */
.wd-related-products, 
.wd-upsell-products {
    margin-top: 60px;
    margin-bottom: 60px;
}

.related > h2,
.upsells > h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #BD9E5E;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.related > h2:after,
.upsells > h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #BD9E5E;
}

.related ul.products,
.upsells ul.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}

.related ul.products li.product,
.upsells ul.products li.product {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .related ul.products li.product,
    .upsells ul.products li.product {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .related ul.products li.product,
    .upsells ul.products li.product {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.product-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222327;
    transition: box-shadow 0.3s ease;
}

.product-wrapper:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image-link img {
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-image-link:hover img {
    transform: scale(1.1);
}

.product-element-bottom {
    padding: 15px;
}

.woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.product .price {
    font-size: 18px;
    color: #BD9E5E;
    margin-bottom: 12px;
}

.product .add_to_cart_button {
    display: inline-block;
    padding: 8px 18px;
    background-color: #BD9E5E;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0px;
    transition: background-color 0.25s ease;
    text-decoration: none;
}

.product .add_to_cart_button:hover {
    background-color: #a68a4f;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product_title {
        font-size: 26px;
    }
    
    .wc-tabs {
        flex-wrap: wrap;
    }
    
    .wc-tabs li {
        margin-right: 20px;
    }
    
    .related ul.products li.product,
    .upsells ul.products li.product {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .wd-single-breadcrumbs {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wd-products-nav {
        margin-top: 10px;
    }
    
    .product_title {
        font-size: 22px;
    }
    
    .wc-tabs li {
        margin-right: 15px;
    }
    
    .wc-tabs li a {
        font-size: 14px;
    }
    
    .related ul.products li.product,
    .upsells ul.products li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }
}