/* Append after your existing product-main.css. WooCommerce, gallery and size-guide integration. */
.dp-product .dp-cart-form{grid-column:1/-1;min-width:0;width:100%}
.dp-product .dp-cart-form form.cart{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.dp-product .dp-cart-form .single_add_to_cart_button{background:#d8203c;color:#fff;border:0;border-radius:11px;min-height:49px;padding:12px 20px;font:inherit;cursor:pointer;flex:1}
.dp-product .dp-cart-form .single_add_to_cart_button.disabled{opacity:.5;cursor:not-allowed}
.dp-product .dp-cart-form .qty{max-width:80px;min-height:42px;border:1px solid #e5e5e5;border-radius:8px;text-align:center}
.dp-product .dp-cart-form .variations,.dp-product .dp-cart-form .single_variation_wrap,.dp-product .dp-cart-form .group_table{width:100%}
.dp-product .dp-cart-form select{max-width:100%;min-height:40px;border:1px solid #e5e5e5;border-radius:8px;font:inherit;background:#fff}
.dp-product .dp-cart-form .variations_button{display:flex;gap:12px;flex-wrap:wrap}
.dp-product .dp-cart-form .woocommerce-variation-price{font-size:16px;margin:8px 0}
.dp-product .dp-cart-total{display:flex;align-items:center;gap:8px;margin:10px 0;color:#555;font-size:14px}
.dp-product .dp-cart-total-count{display:inline-grid;place-items:center;min-width:28px;min-height:28px;padding:0 7px;border-radius:50%;background:#f5f5f5;color:#222;font-weight:700}
.dp-product .dp-price .price{font-size:23px;font-weight:700}
.dp-product .dp-price ins,.dp-product .dp-recommendations ins{text-decoration:none}
.dp-product .dp-price del{font-size:14px;color:#999;margin-left:8px}
.dp-product .dp-intro-text.is-open{overflow:visible}

/* Product gallery lightbox navigation */
.dp-product .dp-dialog-content .dp-lightbox{position:relative;display:flex;align-items:center;justify-content:center;min-height:50vh}
.dp-product .dp-dialog-content .dp-lightbox-image{display:block;max-width:86vw;max-height:78vh;width:auto;height:auto;object-fit:contain;touch-action:pan-y}
.dp-product .dp-dialog-content .dp-lightbox-nav{position:absolute;top:50%;z-index:1;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.dp-product .dp-dialog-content .dp-lightbox-prev{right:12px}
.dp-product .dp-dialog-content .dp-lightbox-next{left:12px}
.dp-product .dp-dialog-content .dp-lightbox-nav[hidden]{display:none}
.dp-product .dp-dialog-content .dp-lightbox-position{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);padding:4px 10px;border-radius:20px;background:rgba(0,0,0,.65);color:#fff;font-size:13px}
@media(max-width:600px){.dp-product .dp-dialog-content .dp-lightbox{min-height:38vh}.dp-product .dp-dialog-content .dp-lightbox-image{max-width:82vw;max-height:70vh}.dp-product .dp-dialog-content .dp-lightbox-nav{width:38px;height:38px}}

/* Product size guide */
.dp-product .size-guide-box{width:100%;margin:1.5rem 0}
.dp-product .size-guide-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.7rem 1.2rem;background:#fff;color:#222;border:1px solid #ddd;border-radius:.6rem;font-family:inherit;font-size:.9rem;cursor:pointer;transition:.3s}
.dp-product .size-guide-btn:hover{border-color:#222}
.dp-product .size-guide-btn svg{width:1rem;height:1rem;transition:transform .3s ease}
.dp-product .size-guide-btn.active svg{transform:rotate(180deg)}
.dp-product .size-guide-content{display:grid;grid-template-rows:0fr;opacity:0;margin-top:0;transition:grid-template-rows .35s ease,opacity .3s ease,margin .35s ease}
.dp-product .size-guide-content.show{grid-template-rows:1fr;opacity:1;margin-top:1rem}
.dp-product .size-guide-inner{min-height:0;overflow:hidden}
.dp-product .size-table-wrap{width:100%;overflow-x:auto;border:1px solid #e5e5e5;border-radius:.8rem}
.dp-product .size-table{width:100%;min-width:650px;border-collapse:collapse;background:#fff;text-align:center}
.dp-product .size-table th,.dp-product .size-table td{padding:.9rem 1rem;border-bottom:1px solid #eee;border-left:1px solid #eee;font-size:.9rem}
.dp-product .size-table th:last-child,.dp-product .size-table td:last-child{border-left:0}
.dp-product .size-table thead th{background:#f7f7f7;color:#222;font-weight:600}
.dp-product .size-table tbody tr:last-child td{border-bottom:0}
.dp-product .size-table tbody tr:hover{background:#fafafa}
.dp-product .size-table td:first-child{font-weight:600}
.dp-product .size-note{margin:.7rem 0 0;color:#777;font-size:.8rem}
@media(max-width:767px){.dp-product .size-guide-btn{font-size:.85rem}.dp-product .size-table th,.dp-product .size-table td{padding:.7rem;font-size:.8rem}}
