/* ==========================================================================
   TAPTOCLIQ — Shop and Product pages (woocommerce/*.php)
   ========================================================================== */

.tq-shop { color: #111; }
.tq-shop .wrap { max-width: 1200px; }

/* ---------- Shop hero ---------- */
.shop-hero { background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 60%, #0010b0 100%); color: var(--white); padding: 56px 0 44px; text-align: center; }
.shop-hero h1 { font-family: var(--fd); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.shop-hero p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ---------- Product grid ---------- */
.shop-body { padding-top: 48px; padding-bottom: 80px; }
.shop-empty { color: var(--gray-600); text-align: center; }
.cat-title { font-family: var(--fd); font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 40px 0 20px; }
.cat-section:first-of-type .cat-title { margin-top: 24px; }
.tq-shop .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.tq-shop .card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r16); padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.tq-shop .card:hover { border-color: var(--gold); box-shadow: 0 12px 32px rgba(0,0,128,.10); transform: translateY(-4px); }
.card-img { width: 100%; height: 160px; border-radius: var(--r12); background: linear-gradient(135deg, var(--navy), var(--navy-subtle)); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--fd); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: .82rem; color: var(--gray-600); margin-bottom: 14px; flex: 1; line-height: 1.5; }
.card-price { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.card-price .unit { font-size: .75rem; font-weight: 500; color: var(--gray-500); }
.card-btn { display: block; text-align: center; padding: 12px; background: var(--navy); color: var(--white); border-radius: 10px; font-weight: 700; font-size: .875rem; transition: background .2s, color .2s; }
.card-btn:hover { background: var(--gold); color: var(--navy); }

.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.shop-filter { background: var(--white); border: 1.5px solid var(--gray-200); color: var(--gray-600); padding: 9px 20px; border-radius: 50px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .18s; }
.shop-filter:hover { border-color: var(--gold); color: var(--navy); }
.shop-filter.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cat-section.hide { display: none; }

/* ---------- Single product ---------- */
.tq-product .wrap { max-width: 1100px; }
.breadcrumb { padding-top: 20px; font-size: .82rem; color: var(--gray-500); }
.breadcrumb a { color: var(--navy); font-weight: 600; }
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.product-img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r16); background: linear-gradient(135deg, var(--navy), var(--navy-subtle)); display: flex; align-items: center; justify-content: center; overflow: hidden; position: sticky; top: calc(var(--nh) + var(--admin-bar) + 26px); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .fallback { color: var(--white); font-family: var(--fd); font-weight: 800; font-size: 1.4rem; }
.product-name { font-family: var(--fd); font-size: 1.7rem; font-weight: 800; color: #111; margin-bottom: 10px; line-height: 1.2; letter-spacing: -.02em; }
.product-price { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.product-desc { font-size: .95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 28px; }
.product-desc p + p { margin-top: .8em; }
.product-unavailable { color: #b91c1c; font-weight: 700; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-row label { font-size: .85rem; font-weight: 700; color: #374151; }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.qty-control input { width: 50px; text-align: center; padding: 8px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: .9rem; }

.add-cart-btn { display: block; width: 100%; padding: 16px; background: var(--navy); color: var(--white); border: none; border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: background .2s, color .2s; }
.add-cart-btn:hover { background: var(--gold); color: var(--navy); }
.add-cart-btn:disabled { opacity: .5; cursor: default; }

.tclq-notice { padding: 14px 16px; border-radius: var(--r12); font-size: .875rem; font-weight: 600; margin-bottom: 20px; border: 1.5px solid transparent; }
.tclq-notice-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.tclq-notice-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

.trust-row { display: flex; gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-200); flex-wrap: wrap; }
.trust-item { font-size: .8rem; color: var(--gray-600); display: flex; align-items: center; gap: 6px; }

.related-section { background: var(--slate-50); padding: 48px 0 60px; }
.related-title { font-family: var(--fd); font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.related-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r12); padding: 18px; transition: transform .2s, border-color .2s; }
.related-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.related-img { width: 100%; height: 110px; border-radius: 8px; background: var(--navy); margin-bottom: 12px; overflow: hidden; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-name { font-size: .88rem; font-weight: 700; margin-bottom: 4px; }
.related-price { font-size: .9rem; font-weight: 800; color: var(--navy); }

/* WooCommerce notices on the shop page */
.tq-shop .woocommerce-message, .tq-shop .woocommerce-error, .tq-shop .woocommerce-info { list-style: none; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r12); background: var(--sky-faint); border: 1.5px solid var(--sky-pale); color: var(--navy); font-weight: 600; font-size: .9rem; }
.tq-shop .woocommerce-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

@media (max-width: 768px) {
	.shop-hero { padding: 36px 0 28px; }
	.shop-hero p { font-size: .9rem; }
	.shop-body { padding-top: 32px; padding-bottom: 56px; }
	.cat-title { font-size: 1.1rem; margin: 32px 0 16px; }
	.tq-shop .grid { grid-template-columns: 1fr; gap: 16px; }
	.tq-shop .card { padding: 18px; }
	.card-img { height: 130px; }
	.product-main { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; padding-bottom: 40px; }
	.product-img { position: static; aspect-ratio: 16 / 10; }
	.product-name { font-size: 1.35rem; }
	.product-price { font-size: 1.3rem; }
	.related-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (max-width: 400px) {
	.tq-shop .wrap { padding-left: 16px; padding-right: 16px; }
}
