/* =========================================================
   DECOR LIVING - WooCommerce markup on top of style.css / pages.css
   (WooCommerce's own stylesheets are disabled in inc/woocommerce.php)
   ========================================================= */

/* ---------- Generic ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.woocommerce-Price-currencySymbol { margin-right: .05em; }
.amount bdi { white-space: nowrap; }
.is-busy { opacity: .6; pointer-events: none; cursor: progress; }
.p-addcart.is-busy::after, .btn.is-busy::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .45em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dl-spin .7s linear infinite; }
@keyframes dl-spin { to { transform: rotate(360deg); } }
#cartToast.is-error .bi-exclamation-circle-fill { color: #f3a6a6; }
.dl-js .dl-update-cart { display: none; }

/* Generic WooCommerce buttons (account pages, notices, order actions) */
.woocommerce a.button, .woocommerce button.button, .woocommerce .woocommerce-button, .woocommerce .wc-forward:not(.btn), .woocommerce .wc-backward:not(.btn) {
  display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 50px; padding: .55rem 1.2rem;
  background: var(--brown); color: #fff; font-weight: 500; font-size: .9rem; line-height: 1.3; text-decoration: none; transition: background .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .woocommerce-button:hover { background: var(--brown-dark); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--gold); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--gold-dark); }
.woocommerce button.button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice:not(.woocommerce-thankyou-order-received) {
  list-style: none; margin: 0 0 1.4rem; padding: .95rem 1.2rem .95rem 3rem; border-radius: 12px; position: relative;
  background: #fff; box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold); color: var(--text); font-size: .95rem;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  font-family: "bootstrap-icons"; position: absolute; left: 1.1rem; top: .9rem; font-size: 1.1rem; line-height: 1.4;
}
.woocommerce-message { border-left-color: #2e9d55; }
.woocommerce-message::before { content: "\f26a"; color: #2e9d55; }
.woocommerce-info::before { content: "\f430"; color: var(--gold); }
.woocommerce-error { border-left-color: #d9534f; }
.woocommerce-error::before { content: "\f33a"; color: #d9534f; }
.woocommerce-error li + li { margin-top: .35rem; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { float: right; margin: -.3rem 0 0 1rem; padding: .35rem .9rem; font-size: .82rem; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: var(--gold-dark); font-weight: 500; }

/* ---------- Shop ---------- */
.shop-pagination .page-item.active .page-link { pointer-events: none; }
.p-addcart.disabled { opacity: .7; cursor: not-allowed; }

/* ---------- Cart page ---------- */
.ct-row .product-quantity, .ct-row .product-remove { display: flex; align-items: center; }
.ct-row .product-remove a.ct-remove { display: grid; place-items: center; text-decoration: none; }
.ct-row a.ct-product:hover b { color: var(--gold-dark); }
.ct-row .ct-total .amount, .ct-row .ct-price .amount { font-weight: inherit; }
.ct-qty-fixed { display: inline-block; min-width: 36px; text-align: center; }
.qty-sm input.qty { -moz-appearance: textfield; appearance: textfield; }
.cart-table .backorder_notification { display: block; color: #b26a00; }
@media (max-width: 767.98px) {
  .ct-row .product-quantity { grid-area: qty; justify-self: start; }
  .ct-row .product-remove { grid-area: rm; justify-self: end; }
}
.coupon-form { flex-wrap: wrap; position: relative; }
.coupon-form .form-control { flex: 1 1 140px; min-width: 0; }
.coupon-form .coupon-error-notice { flex-basis: 100%; margin: .4rem 0 0; color: #d9534f; font-size: .85rem; }
.coupon-form .form-control.has-error { border-color: #d9534f; }
.totals dd .woocommerce-remove-coupon { font-size: .78rem; font-weight: 400; color: var(--muted); margin-left: .35rem; }
.totals dd .woocommerce-remove-coupon:hover { color: #d9534f; }
.totals dd small.includes_tax { display: block; font-weight: 400; color: var(--muted); }
.cart-collaterals .wc-proceed-to-checkout { margin-top: .2rem; }
.wc-empty-cart-message .empty-state { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Checkout ---------- */
.dl-co-summary { top: 110px; z-index: 1; }
.dl-fields > .form-row { margin: 0; }
.dl-fields .form-row label.form-label { display: block; margin-bottom: .4rem; }
.dl-fields .form-row label .required { color: #d9534f; text-decoration: none; border: 0; }
.dl-fields .form-row label .optional { color: var(--muted); font-weight: 400; font-size: .85em; }
.dl-fields .woocommerce-input-wrapper { display: block; }
.dl-fields .woocommerce-input-wrapper > strong { display: none; } /* single-country label */
.dl-fields .description { display: block; margin-top: .3rem; font-size: .82rem; color: var(--muted); }
.dl-fields textarea.form-control { min-height: 0; resize: vertical; }
.woocommerce-invalid .form-control, .woocommerce-invalid .form-select { border-color: #d9534f !important; }
.woocommerce-invalid .form-control:focus, .woocommerce-invalid .form-select:focus { box-shadow: 0 0 0 3px rgba(217, 83, 79, .15) !important; }
.woocommerce-validated .form-control:not(:placeholder-shown) { border-color: #9fd3b0; }
.checkout-inline-error-message, .dl-fields .woocommerce-error-message { margin: .35rem 0 0; color: #d9534f; font-size: .85rem; }
.woocommerce-account-fields .form-check { padding-left: 1.6em; }
.woocommerce-checkout .create-account .form-row { margin: 0; }

/* "Have a coupon?" on checkout */
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 1rem; }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 460px; background: #fff; padding: 1rem; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
form.checkout_coupon .form-row { margin: 0; flex: 1 1 160px; }
form.checkout_coupon .form-row-last { flex: 0 0 auto; }
form.checkout_coupon .input-text { width: 100%; border: 1px solid var(--beige); border-radius: 50px; padding: .55rem 1rem; }
form.checkout_coupon .coupon-error-notice { flex-basis: 100%; margin: 0; color: #d9534f; font-size: .85rem; }
form.checkout_coupon .clear { display: none; }
.woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 1rem; }
form.woocommerce-form-login.login:not(.row) { background: #fff; padding: 1.2rem; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; max-width: 560px; }
form.woocommerce-form-login.login:not(.row) .input-text { width: 100%; border: 1px solid var(--beige); border-radius: 10px; padding: .55rem .9rem; }

/* Payment methods */
.wc_payment_methods > li { position: relative; }
.wc_payment_methods .payment_box { margin: .6rem 0 0; padding: 1rem 1.2rem; background: var(--cream); border-radius: 12px; font-size: .9rem; }
.wc_payment_methods .payment_box p:last-child { margin-bottom: 0; }
.pay-box small p { margin: 0; }
#payment .woocommerce-info, #payment .woocommerce-notice { margin: 0; }

/* Place order block */
.place-order { margin-top: .4rem; }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 0 1rem; font-size: .875rem; }
.woocommerce-terms-and-conditions-wrapper label.checkbox { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; }
.woocommerce-terms-and-conditions-wrapper input.input-checkbox { margin-top: .25rem; flex-shrink: 0; width: 1.05em; height: 1.05em; accent-color: var(--brown); }
.woocommerce-terms-and-conditions-wrapper abbr.required { color: #d9534f; text-decoration: none; border: 0; }
.woocommerce-terms-and-conditions-wrapper a { color: var(--gold-dark); }
.woocommerce-terms-and-conditions-wrapper .woocommerce-invalid label { color: #d9534f; }
#place_order::before { font-family: "bootstrap-icons"; content: "\f47a"; margin-right: .45rem; font-size: .95em; }
#place_order:disabled { opacity: .65; }

/* blockUI overlay while WooCommerce updates totals */
.blockUI.blockOverlay { border-radius: var(--radius); }
.blockUI.blockOverlay::before { content: ""; position: absolute; top: 50%; left: 50%; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em; border: 3px solid var(--gold); border-right-color: transparent; border-radius: 50%; animation: dl-spin .7s linear infinite; }
.woocommerce-checkout-review-order-table, .cart_totals, .woocommerce-cart-form { position: relative; }

/* ---------- Thank you page ---------- */
.order-received .thankyou .lead b { color: var(--brown-dark); }
.pay-instructions .woocommerce-bacs-bank-details { margin-top: 1rem; }
.pay-instructions .wc-bacs-bank-details-heading { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; margin: 0 0 .5rem; color: var(--brown-dark); }
.pay-instructions .wc-bacs-bank-details-account-name { font-size: .95rem; font-family: var(--font-sans); font-weight: 600; margin: .6rem 0 .3rem; color: var(--muted); }
.pay-instructions ul.wc-bacs-bank-details { list-style: none; padding: 0; margin: 0 0 .6rem; border: 1px solid var(--sand); border-radius: 10px; overflow: hidden; }
.pay-instructions ul.wc-bacs-bank-details li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-bottom: 1px solid var(--sand); font-size: .92rem; color: var(--muted); }
.pay-instructions ul.wc-bacs-bank-details li:last-child { border-bottom: 0; }
.pay-instructions ul.wc-bacs-bank-details li strong { color: var(--brown-dark); font-weight: 600; word-break: break-all; text-align: right; }
.pay-instructions .dl-wallets th { width: 40%; font-weight: 500; color: var(--muted); }
.pay-instructions > p:last-child { margin-bottom: 0; }

/* ---------- Track order ---------- */
#trackResult .track-steps li[aria-current] { font-weight: 600; }

/* ---------- My account ---------- */
.dl-account .woocommerce { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.dl-account .woocommerce > .woocommerce-notices-wrapper, .dl-account .woocommerce > #customer_login,
.dl-account .woocommerce > .alert, .dl-account .woocommerce > .account-links,
.dl-account .woocommerce > form, .dl-account .woocommerce > .woocommerce-message,
.dl-account .woocommerce > .woocommerce-error, .dl-account .woocommerce > .woocommerce-info { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: .6rem .9rem; border-radius: 10px; color: var(--text); font-size: .95rem; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--cream); color: var(--gold-dark); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--brown); color: #fff; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #d9534f; }
.woocommerce-MyAccount-content { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; min-width: 0; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-size: 1.2rem; }
.woocommerce-MyAccount-content mark { background: var(--sand); color: var(--brown-dark); border-radius: 4px; padding: 0 .3rem; }
.woocommerce-MyAccount-content table.shop_table { width: 100%; margin-bottom: 1.2rem; border-collapse: collapse; font-size: .92rem; }
.woocommerce-MyAccount-content table.shop_table th, .woocommerce-MyAccount-content table.shop_table td { padding: .65rem .6rem; border-bottom: 1px solid var(--sand); text-align: left; vertical-align: middle; }
.woocommerce-MyAccount-content table.shop_table thead th { background: var(--cream); font-weight: 500; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.woocommerce-MyAccount-content .woocommerce-orders-table .button { padding: .35rem .9rem; font-size: .82rem; margin: .1rem; }
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.woocommerce-MyAccount-content .woocommerce-Address { background: var(--cream); border-radius: 12px; padding: 1.1rem; }
.woocommerce-MyAccount-content .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.woocommerce-MyAccount-content .woocommerce-Address-title h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.woocommerce-MyAccount-content .form-row { margin: 0 0 1rem; }
.woocommerce-MyAccount-content .form-row label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.woocommerce-MyAccount-content .form-row .required { color: #d9534f; text-decoration: none; }
.woocommerce-MyAccount-content input.input-text, .woocommerce-MyAccount-content select, .woocommerce-MyAccount-content textarea {
  display: block; width: 100%; border: 1px solid var(--beige); border-radius: 10px; padding: .6rem .9rem; background: #fff; color: var(--text);
}
.woocommerce-MyAccount-content input.input-text:focus, .woocommerce-MyAccount-content select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 74, .15); }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--sand); border-radius: 12px; padding: 1rem 1.2rem .2rem; margin: 1rem 0; }
.woocommerce-MyAccount-content legend { float: none; width: auto; font-size: 1rem; font-weight: 600; padding: 0 .4rem; }
.woocommerce-MyAccount-content .woocommerce-order-details, .woocommerce-MyAccount-content .woocommerce-customer-details { margin-top: 1.5rem; }
.woocommerce-MyAccount-content address { background: var(--cream); border-radius: 12px; padding: 1rem; }
.woocommerce-MyAccount-content .order-again { margin-top: 1rem; }
.woocommerce-password-strength { font-size: .85rem; margin-top: .4rem; }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { color: #d9534f; }
.woocommerce-password-strength.good { color: #b26a00; }
.woocommerce-password-strength.strong { color: #2e9d55; }
.woocommerce-password-hint { display: block; font-size: .8rem; color: var(--muted); }
.show-password-input { display: none; }
form.woocommerce-ResetPassword, form.lost_reset_password { max-width: 520px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; }
form.lost_reset_password .input-text { width: 100%; border: 1px solid var(--beige); border-radius: 10px; padding: .6rem .9rem; }
.dl-register-extra:empty { display: none; }
#customer_login .required { color: #d9534f; }
@media (max-width: 991.98px) {
  .dl-account .woocommerce { grid-template-columns: 1fr; gap: 1.2rem; }
  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: .3rem; }
  .woocommerce-MyAccount-navigation li a { padding: .45rem .8rem; font-size: .88rem; }
}

/* =========================================================
   Advanced Woo Search — styled like the theme's pill search box
   ========================================================= */
.dl-search { position: relative; }
.dl-search-header { max-width: 560px; }
.dl-search-480 { max-width: 480px; }
.dl-search-560 { max-width: 560px; }
.dl-search .aws-container .aws-search-form { height: 48px; background: #fff; border: 1.5px solid var(--beige); border-radius: 50px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.dl-search .aws-container .aws-search-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,137,74,.12); }
.dl-search .aws-container .aws-search-field { border: 0; background: transparent; padding: 0 1.1rem; font-family: var(--font-sans); font-size: .95rem; color: var(--text); line-height: 1.4; }
.dl-search .aws-container .aws-search-field::placeholder { color: var(--muted); }
.dl-search .aws-container .aws-search-form .aws-search-clear { color: var(--muted); }
.dl-search .aws-container .aws-search-form .aws-form-btn { background: var(--brown); border: 0; margin: 0; width: 58px; color: #fff; border-radius: 0 50px 50px 0 !important; }
.dl-search .aws-container .aws-search-form .aws-form-btn:hover { background: var(--gold); }
.dl-search .aws-container .aws-search-form .aws-search-btn_icon { color: #fff; width: 58px; height: 20px; }
@media (max-width: 1024px) { .dl-search .aws-container .aws-search-field { font-size: 16px; } }

/* Live results dropdown */
.aws-search-result { border: 1px solid var(--beige); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-top: 6px; font-family: var(--font-sans); font-size: .9rem; }
.aws-search-result .aws_result_item { border-bottom: 1px solid var(--sand); }
.aws-search-result .aws_result_item:hover, .aws-search-result .aws_result_item.hovered { background: var(--cream); }
.aws-search-result .aws_result_title { color: var(--text); font-weight: 500; }
.aws-search-result .aws_result_title .highlight, .aws-search-result .aws_result_excerpt .highlight { background: transparent; color: var(--gold-dark); font-weight: 600; }
.aws-search-result .aws_result_price { color: var(--brown); font-weight: 600; }
.aws-search-result .aws_result_price del { color: var(--muted); font-weight: 400; }
.aws-search-result .aws_result_sale .aws_onsale { background: var(--gold); }
.aws-search-result .aws_search_more a { color: var(--brown); font-weight: 600; }
.aws-search-result .aws_search_more a:hover { background: var(--sand); }

/* =========================================================
   Product image lightbox (single-product.php + product.js)
   ========================================================= */
.pd-main img#pdImg { cursor: zoom-in; }
.pd-lightbox .modal-content { background: rgba(26, 20, 15, .96); border: 0; border-radius: 0; }
.pd-lightbox .carousel-item { text-align: center; }
.pd-lightbox .carousel-item img { max-width: 100%; max-height: 100vh; width: auto; height: 100%; object-fit: contain; padding: 3.5rem 1rem; margin: 0 auto; display: block; user-select: none; }
.pd-lightbox .carousel-control-prev, .pd-lightbox .carousel-control-next { width: 12%; opacity: .85; font-size: 2.2rem; color: #fff; }
.pd-lightbox .carousel-control-prev:hover, .pd-lightbox .carousel-control-next:hover { opacity: 1; }
.pd-lightbox .carousel-control-prev i, .pd-lightbox .carousel-control-next i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.pd-lb-close { position: absolute; top: 14px; right: 16px; z-index: 5; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.2rem; }
.pd-lb-close:hover { background: var(--gold); }
.pd-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; color: #fff; font-size: .85rem; letter-spacing: .05em; background: rgba(255,255,255,.12); border-radius: 50px; padding: .25rem .9rem; }
