/* Product Detail Page Custom Styles */

/* Layout */
.flex-item.row {
    margin-left: -15px;
    margin-right: -15px;
}

.flex-item > [class*='col-'] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Product Gallery Column */
.woocommerce-product-gallery {
    margin-bottom: 30px;
}

/* Product Summary Column */
.summary.entry-summary {
    padding-left: 20px;
}

/* Quantity Controls */
.custom-product-quantity {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

.custom-product-quantity .qty {
    width: 100%;
    height: 100%;
    border: 1px solid #e5e5e5;
    padding: 0 35px 0 10px;
    text-align: left;
    font-size: 14px;
    -moz-appearance: textfield;
}

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

.custom-product-quantity .q_inc,
.custom-product-quantity .q_dec {
    position: absolute;
    right: 0;
    width: 30px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
    background: #f8f8f8;
    border-left: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.custom-product-quantity .q_inc:hover,
.custom-product-quantity .q_dec:hover {
    background: #333;
    color: #fff;
}

.custom-product-quantity .q_inc {
    top: 0;
    border-bottom: 1px solid #e5e5e5;
}

.custom-product-quantity .q_dec {
    bottom: 0;
}

.custom-product-quantity .q_inc:before {
    content: '+';
    font-size: 16px;
    font-weight: 400;
}

.custom-product-quantity .q_dec:before {
    content: '−';
    font-size: 16px;
    font-weight: 400;
}

/* Product Gallery Thumbnails */
.flex-control-thumbs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.flex-control-thumbs li {
    list-style: none;
    width: 80px;
    height: 80px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.flex-control-thumbs li:hover {
    border-color: #333;
}

.flex-control-thumbs li.flex-active,
.flex-control-thumbs li img.flex-active {
    border-color: #333;
    opacity: 1;
}

.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.flex-control-thumbs li img:hover {
    opacity: 1;
}

/* Product Main Image */
.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Star Rating */
.product-list-rating {
    margin-bottom: 15px;
}

.product-list-rating .css-stars {
    display: inline-block;
    margin-right: 10px;
}

.product-list-rating .star {
    display: inline-block;
    color: #ffc107;
    font-size: 18px;
    margin-right: 2px;
}

.product-list-rating .star:before {
    font-family: 'FontAwesome';
    content: '\f005';
}

.product-list-rating .star.half:before {
    content: '\f089';
}

.product-list-rating .star.empty:before {
    content: '\f006';
}

.product-list-rating a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.product-list-rating a:hover {
    color: #333;
}

/* Product Tabs */
.woocommerce-tabs {
    margin-top: 30px;
}

.tabs-item-wrapp {
    border-bottom: 1px solid #e5e5e5;
}

.tabs-title {
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tabs-title:hover {
    color: #333;
}

.tabs-title.active {
    color: #333;
    font-weight: 500;
}

.tabs-title a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tabs-mark {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

.tabs-title.active .tabs-mark-plus {
    display: none;
}

.tabs-title:not(.active) .tabs-mark-minus {
    display: none;
}

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

/* WhatsApp Order Button */
.whatsapp-order-button {
    background: #25D366;
    color: #fff;
    padding: 18px 45px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 25px;
    margin-bottom: 20px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-order-button:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.whatsapp-order-button i {
    margin-right: 10px;
    font-size: 18px;
    vertical-align: middle;
}

.whatsapp-order-button:active {
    transform: translateY(0);
}

/* Product Info */
.woocommerce-product-details__short-description {
    color: #999;
    line-height: 1.8;
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .flex-control-thumbs li {
        width: 60px;
        height: 60px;
    }

    .summary.entry-summary {
        padding-left: 0;
        margin-top: 30px;
    }

    .whatsapp-order-button {
        width: 100%;
        text-align: center;
        padding: 16px 30px;
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .summary.entry-summary {
        padding-left: 15px;
    }
}
