/* =====================================================================
   Jawaharat theme — WordPress / WooCommerce specific additions
   ===================================================================== */

.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; }
.skip-link:focus { position: fixed !important; z-index: 1000; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; }

/* Admin bar offsets for sticky / fixed elements */
.admin-bar .site-header { top: 32px; }
.admin-bar .drawer, .admin-bar .drawer-overlay, .admin-bar .cdrawer, .admin-bar .scrim { top: 32px; }
.admin-bar .c-sticky { top: calc(32px + var(--hdr-h, 144px)); }
.admin-bar .pd-gal { top: calc(32px + var(--hdr-h, 144px) + 12px); }
.admin-bar .c-side { top: calc(32px + var(--hdr-h, 144px) + var(--cst-h, 130px) + 20px); }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .drawer, .admin-bar .drawer-overlay, .admin-bar .cdrawer, .admin-bar .scrim { top: 46px; }
	.admin-bar .c-sticky { top: var(--hdr-h, 98px); }
}

/* Hero titles (h1 on the first slide, h2 on the rest) */
.hero .hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 6.4vw, 96px); line-height: .95; letter-spacing: -.035em; margin: 26px 0 0; }
.hero .hero-title em { font-style: italic; color: var(--gold-soft); }
.hero .hero-title.one-line br { display: none; }
.hero .hero-title.one-line { white-space: nowrap; }
@media (min-width: 990px) { .hero .hero-title { font-size: clamp(46px, 5.6vw, 84px); margin-top: 22px; } }
.float-card a { flex: none; }

/* Product cards */
.pmedia .pm-link { position: absolute; inset: 0; z-index: 1; display: block; }
.pmedia .badge, .pmedia .wish, .pmedia .qv-btn, .pmedia .qadd { z-index: 3; }
.pmeta h3 a { color: inherit; }
.pmeta h3 a:hover { color: var(--brand-text); }
.tab-pane[hidden] { display: none; }
.footer-logo:not(.is-white) img { filter: none; }

/* Loading states */
.loading { pointer-events: none; opacity: .7; }
.btn.loading::after { content: ""; width: 14px; height: 14px; margin-left: 6px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.qadd.loading, [data-add].loading { opacity: .6; }

/* Collection additions */
.c-active a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-ink); font-size: 13px; white-space: nowrap; transition: .2s; }
.c-active a::after { content: "✕"; font-size: 10px; opacity: .7; }
.c-active a:hover { background: var(--sage-mid); }
.c-sort label { color: var(--muted); }
.fl-link { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; }
.fl-link i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #CFC6B8; background: #fff; flex: none; display: grid; place-items: center; }
.fl-link.on i { border-color: var(--sage-deep); background: var(--sage-deep); }
.fl-link.on i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.fl-link small { margin-left: auto; color: var(--muted); font-size: 13px; }
.fl-link:hover { color: var(--brand-text); }
.c-empty a { text-decoration: underline; color: var(--ink); }
.c-more .btn { width: auto; }
@media (max-width: 749px) { .c-sort label { display: none; } }

/* Buy box (product page + quick view) */
.bbox { display: flex; flex-direction: column; gap: 18px; }
.pd-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.02em; }
.qv .pd-title { font-size: 32px; padding-right: 44px; }
.pd-blurb p { margin: 0; }
.pd-opt button.na { opacity: .45; text-decoration: line-through; }
.pd-opt button.na.on { opacity: .7; }
.bb-add:disabled, .bb-now-btn:disabled { opacity: .45; cursor: not-allowed; }
.bb-more { font-size: 14px; font-weight: 500; text-decoration: underline; width: max-content; }
.qv { display: grid; }
.qv-gal { position: relative; }
.qv-gal .qv-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-info { position: relative; }
.qv-info .x { z-index: 2; }
.qv .bbox { gap: 14px; }
.qv .pd-buy .btn { --bh: 52px; }
.pd-acc .ans table { margin-top: 0; }
.pd-acc .ans p { margin: 0 0 18px; }

/* Wishlist drawer (re-uses the cart drawer styles) */
body.cart-open .cdrawer.wl { transform: translateX(100%); }
body.wl-open .cdrawer.wl { transform: none; }
body.wl-open .scrim { opacity: 1; visibility: visible; }
body.wl-open { overflow: hidden; }
.cart-f .l.save { color: var(--brand-text); font-weight: 500; }
.ci .eng.bun { background: var(--sage-soft); color: var(--sage-ink); }
.cart-f .trust a { text-decoration: underline; }
.cempty .btn { margin-top: 4px; }

/* Mega menu product tile as link */
.mprod { color: inherit; }

/* Reviews form */
.review-form { margin-top: 40px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.review-title { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 16px; }
.review-form p { margin: 0 0 14px; }
.review-form label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.review-form input[type="text"], .review-form input[type="email"], .review-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--cream); font-size: 15px; outline: 0; }
.review-form input:focus, .review-form textarea:focus { border-color: var(--sage-deep); }
.comment-form-rating { margin-bottom: 14px; }
.rate-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rate-pick label { font-size: 28px; line-height: 1; color: #D9D2C4; cursor: pointer; margin: 0; letter-spacing: 0; text-transform: none; transition: color .15s; }
.rate-pick input:checked ~ label, .rate-pick label:hover, .rate-pick label:hover ~ label { color: var(--gold); }
.rate-pick input:focus-visible + label { outline: 2px solid var(--sage-deep); border-radius: 4px; }
.review-form .form-submit { margin: 0; }
.rcard[hidden] { display: none; }

/* Generic pages, blog, cart / checkout / account */
.page-sec { padding: 64px 0 96px; }
.narrow { max-width: 860px; }
.page-head { margin-bottom: 32px; }
.entry { font-size: 17px; line-height: 1.7; color: var(--ink); }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin-top: 1.6em; }
.entry a { color: var(--brand-text); text-decoration: underline; }
.entry img { border-radius: var(--r-md); height: auto; }
.entry ul, .entry ol { padding-left: 1.3em; }
.post-list { display: grid; gap: 28px; margin-top: 32px; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.post-card .pc-img img { border-radius: var(--r-md); width: 100%; height: 180px; object-fit: cover; }
.post-card h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 4px 0 8px; }
.post-card small { color: var(--muted); }
@media (max-width: 749px) { .post-card { grid-template-columns: 1fr; } }

.wc-page .entry { font-size: 15px; }
.wc-page .entry > * + * { margin-top: 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; padding: 14px 18px; border-radius: 14px; margin: 0 0 20px; background: var(--sage-soft); color: var(--sage-ink); font-size: 15px;
}
.woocommerce-error { background: #FBE7E3; color: #8A2E1F; }
.woocommerce-message .button, .woocommerce-info .button { float: right; text-decoration: underline; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button:not(.is-link), .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px !important; border: 0;
	background: var(--sage-deep) !important; color: var(--on-brand) !important; font-weight: 500; font-family: var(--sans); cursor: pointer; text-decoration: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--night) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select select, .woocommerce form .input-text, .woocommerce form select {
	border-radius: 12px !important; border-color: var(--line) !important;
}
.wc-block-cart, .wc-block-checkout { font-family: var(--sans); }
.shop_table { width: 100%; border-collapse: collapse; }
.shop_table th, .shop_table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.pager .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.pager .page-numbers { min-width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); }
.pager .page-numbers.current { background: var(--ink); color: #fff; }

/* Collection: results fade while an AJAX filter request is in flight. */
.c-main { transition: opacity .2s; }
.c-main.is-loading { opacity: .45; pointer-events: none; }

/* Product description inside the accordion: headings, bullet lists, links. */
.pd-acc .ans h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); margin: 22px 0 8px; }
.pd-acc .ans > div > h3:first-child { margin-top: 0; }
.pd-acc .ans ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.pd-acc .ans ul li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pd-acc .ans ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-deep); }
.pd-acc .ans a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
