/* Single Product Page Customization */

.product-template-default .site-main {
    padding-top: 20px;
    padding-bottom: 50px;
}

.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce div.product .woocommerce-product-gallery {
    width: 50% !important;
    float: none;
    margin-right: 0 !important;
}

.woocommerce div.product .summary.entry-summary {
    width: calc(50% - 40px) !important;
    float: none;
    clear: none;
    padding-top: 20px;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    width: 100%;
    margin-bottom: 30px;
    font-size: 13px;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: var(--primary);
}

/* Typography & Titles */
.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.woocommerce div.product .woocommerce-product-details__short-description p {
    margin-bottom: 10px;
}

.woocommerce div.product .woocommerce-product-details__short-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce div.product .woocommerce-product-details__short-description ul li {
    position: relative;
    padding-left: 0;
    margin-bottom: 6px;
}

.woocommerce div.product .woocommerce-product-details__short-description ul li::before {
    content: "•";
    margin-right: 6px;
    color: #555;
}

/* Variations Custom UI */
.woocommerce div.product form.cart {
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .variations {
    width: 100%;
    margin-bottom: 25px;
    border: none;
}

.woocommerce div.product form.cart .variations th {
    display: block;
    text-align: left;
    padding: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
}

.woocommerce div.product form.cart .variations td {
    display: block;
    padding: 0 0 20px 0;
}

/* Hide standard selects and show custom blocks */
.woocommerce div.product form.cart .variations select {
    display: none;
}

.custom-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-var-swatch {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.custom-var-swatch:hover {
    border-color: #999;
}

.custom-var-swatch.selected {
    border-color: #222;
    background: #f9f9f9;
    font-weight: 600;
}

.custom-var-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Print Quantity (Full width blocks) */
.custom-variation-swatches.swatch-type-printing-quantity {
    flex-direction: column;
}

.custom-variation-swatches.swatch-type-printing-quantity .custom-var-swatch {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
}

/* Pricing */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide default top price for variable products */
.woocommerce div.product.product-type-variable .summary.entry-summary>p.price {
    display: none !important;
}

/* Variation Pricing below options */
.woocommerce div.product form.cart .woocommerce-variation-price {
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .woocommerce-variation-price .price {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.woocommerce div.product p.price::before,
.woocommerce div.product form.cart .woocommerce-variation-price .price::before {
    content: "As low as ";
    font-size: 12px;
    color: #777;
    font-weight: 500;
}

.woocommerce div.product p.price del {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

.woocommerce div.product p.price ins {
    text-decoration: none;
}

/* Add to Cart Area */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

/* Hide standard quantity box for customized products if we use variations for quantity, or style it */
.woocommerce div.product form.cart div.quantity {
    display: none !important;
    /* The screenshot shows variations acting as quantities */
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: #ff7b00 !important;
    /* Match Screenshot Orange */
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    text-transform: capitalize !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #e66a00 !important;
}

/* Buy Now Button */
.btn-buy-now {
    background: #4189e0 !important;
    /* Screenshot Blue */
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize !important;
}

.btn-buy-now:hover {
    background: #3275c9 !important;
}

/* Disable reset variations link natively, we will handle it visually */
.reset_variations {
    display: none !important;
}

/* Product Meta (Categories, Tags) */
.product_meta {
    display: none;
    /* Hidden in screenshot */
}

/* Social Sharing */
.product-share-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.product-share-icons a {
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.product-share-icons a:hover {
    color: #222;
}

/* Tabs & Related Full Width */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
    width: 100% !important;
    margin-top: 60px;
    clear: both;
}

.woocommerce div.product .related.products>h2,
.woocommerce div.product .upsells.products>h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Grid for related products */
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.woocommerce div.product .related.products ul.products li.product,
.woocommerce div.product .upsells.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Responsive */
@media (max-width: 991px) {

    .woocommerce div.product .woocommerce-product-gallery,
    .woocommerce div.product .summary.entry-summary {
        width: 100% !important;
    }
}