/*
Theme Name: Dabla
Theme URI: https://dablaled.pariksarthi.com
Description: Storefront child theme for the Dabla LED lighting store. Holds the
             presentation decisions that would otherwise accumulate as
             Customizer CSS: which homepage sections appear, how many
             categories are listed, and the footer layout.
Author: Dabla
Template: storefront
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dablaled
*/

/* ---------------------------------------------------------------- hero ---- */

/* The front page leads with one heading, one paragraph and one button, all
   centred. Storefront left-aligns block buttons by default. */
.home .entry-header,
.home .entry-content {
	text-align: center;
}

.home .entry-content p {
	max-width: 42em;
	margin-left: auto;
	margin-right: auto;
}

.home .entry-content .wp-block-buttons {
	justify-content: center;
}

.home .entry-content .wp-block-button__link {
	padding: 0.85em 2.2em;
	font-weight: 600;
}

.home .entry-header {
	margin-bottom: 1.25em;
}

/* --------------------------------------------------------- categories ---- */

/* Category tiles carry a product photograph on white, so they need room to
   breathe and a consistent height rather than Storefront's flush crop. */
.storefront-product-categories .woocommerce-loop-category__title {
	font-size: 1rem;
	padding: 1em 0 0;
	background: none;
	color: inherit;
}

.storefront-product-categories .woocommerce-loop-category__title .count {
	background: none;
	color: #6b7784;
	font-size: 0.85em;
}

.storefront-product-categories ul.products li.product a img,
.storefront-product-categories .products .product img {
	background: #fff;
	object-fit: contain;
	aspect-ratio: 1 / 1;
	padding: 0.5em;
}

/* ------------------------------------------------------------- footer ---- */

.site-footer {
	padding-top: 3em;
	font-size: 0.95em;
}

.site-footer .footer-widgets {
	padding-bottom: 1.5em;
}

.site-footer .widget-title {
	font-size: 1rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.8em;
}

.site-footer .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .widget ul li {
	margin-bottom: 0.45em;
}

.site-footer p {
	margin-bottom: 0.6em;
	line-height: 1.6;
}

/* Statutory identifiers: present, readable, but quieter than the description. */
.dabla-footer-reg {
	font-size: 0.85em;
	color: #6b7784;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
}

.dabla-footer-contact a {
	font-weight: 600;
	white-space: nowrap;
}

.site-info {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 1.5em;
	font-size: 0.9em;
}

.dabla-credit {
	display: inline-block;
	margin-left: 0.5em;
}

.dabla-credit::before {
	content: "\00b7";
	margin-right: 0.6em;
	opacity: 0.5;
}

@media (max-width: 560px) {
	.dabla-credit {
		display: block;
		margin: 0.4em 0 0;
	}
	.dabla-credit::before {
		content: none;
	}
}

/* ------------------------------------------------------ product image ---- */

/* The photograph carries the specification label, so it earns more of the page
   than Storefront's even split gives it. Laid out with flex rather than by
   widening Storefront's floats: floats wrap the summary underneath as soon as
   the two columns and the gutter exceed the row, which is exactly what a wider
   image causes. */
@media (min-width: 768px) {
	.woocommerce div.product,
	.woocommerce-page div.product {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: space-between;
	}

	/* Storefront's own rules carry an #content id, so they outrank a plain
	   class selector; these have to match that weight to take effect. */
	.woocommerce #content div.product div.images,
	.woocommerce div.product div.images,
	.woocommerce-page #content div.product div.images,
	.woocommerce-page div.product div.images {
		width: 56%;
		max-width: 56%;
		float: none;
		margin: 0;
	}

	.woocommerce #content div.product div.summary,
	.woocommerce div.product div.summary,
	.woocommerce-page #content div.product div.summary,
	.woocommerce-page div.product div.summary {
		width: 40%;
		max-width: 40%;
		float: none;
		margin: 0;
	}

	/* Everything under the two columns spans the full row again. */
	.woocommerce div.product .woocommerce-tabs,
	.woocommerce div.product .related,
	.woocommerce div.product .upsells,
	.woocommerce div.product .storefront-product-pagination,
	.woocommerce-page div.product .woocommerce-tabs,
	.woocommerce-page div.product .related,
	.woocommerce-page div.product .upsells,
	.woocommerce-page div.product .storefront-product-pagination {
		width: 100%;
		flex: 0 0 100%;
		float: none;
		clear: both;
		margin-top: 2.5em;
	}
}

.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Storefront's mobile bar duplicates links that are already in the footer. */
@media (max-width: 767px) {
	.site-footer .footer-widgets .block {
		margin-bottom: 1.8em;
	}
}

/* ------------------------------------------------------ specifications ---- */

/* Headline specifications, shown beside the price so the comparison can be
   made without opening a tab. */
.dabla-key-specs {
	margin: 0 0 1.5em;
	padding: 0.9em 1.1em;
	background: #f6f8fa;
	border: 1px solid #e3e8ed;
	border-radius: 4px;
	font-size: 0.95em;
}

.dabla-key-specs__row {
	display: flex;
	gap: 1em;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.4em 0;
	border-bottom: 1px solid #e8edf2;
}

.dabla-key-specs__row:last-child {
	border-bottom: 0;
}

.dabla-key-specs dt {
	margin: 0;
	color: #5b6874;
	font-weight: 400;
	flex: 0 0 auto;
}

.dabla-key-specs dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.dabla-key-specs__more {
	margin: -0.75em 0 1.5em;
	font-size: 0.9em;
}

/* The full table in the Specifications tab: readable rows rather than a dense
   two-column block. */
.woocommerce-Tabs-panel--additional_information table.shop_attributes {
	border: 1px solid #e3e8ed;
	border-radius: 4px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes td {
	padding: 0.7em 1em;
	border-bottom: 1px solid #edf1f5;
	font-style: normal;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child td {
	border-bottom: 0;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes th {
	width: 38%;
	background: #f6f8fa;
	color: #5b6874;
	font-weight: 400;
	text-align: left;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes td p {
	margin: 0;
	font-weight: 600;
}

@media (max-width: 560px) {
	.dabla-key-specs__row {
		flex-direction: column;
		gap: 0.1em;
	}
	.dabla-key-specs dd {
		text-align: left;
	}
	.woocommerce-Tabs-panel--additional_information table.shop_attributes th {
		width: 45%;
	}
}
