/*
Theme Name: Regency Shop Lite
Description: Minimal WooCommerce storefront — fast loading, same URLs and content as your site.
Author: Regency Shop
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: regencyshop-lite
*/

/* Reset-ish baseline */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		Roboto,
		Ubuntu,
		Cantarell,
		'Helvetica Neue',
		sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #1a1a1a;
	background: #fafafa;
}

a {
	color: #0d47a1;
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: #1565c0;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.rsl-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */
.rsl-header {
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 0.75rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.rsl-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.rsl-brand {
	font-weight: 700;
	font-size: 1.15rem;
}

.rsl-brand a {
	text-decoration: none;
	color: inherit;
}

.rsl-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.rsl-nav a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
}

.rsl-nav a:hover {
	color: #0d47a1;
}

.rsl-header-tools {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.95rem;
}

.rsl-header-tools a {
	white-space: nowrap;
}

/* Main */
.rsl-main {
	padding: 2rem 0 3rem;
	min-height: 50vh;
	background: #fff;
}

.rsl-main .rsl-wrap > *:first-child {
	margin-top: 0;
}

/* Footer */
.rsl-footer {
	padding: 2rem 0;
	border-top: 1px solid #e0e0e0;
	background: #f5f5f5;
	font-size: 0.9rem;
	color: #555;
}

/* Typography in content */
.rsl-main h1,
.rsl-main .woocommerce-products-header__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 1rem;
	line-height: 1.25;
}

.rsl-main h2 {
	font-size: 1.35rem;
	margin: 1.5rem 0 0.75rem;
}

.rsl-main h3 {
	font-size: 1.15rem;
	margin: 1.25rem 0 0.5rem;
}

/* WooCommerce: product grid */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product {
	margin: 0;
	padding: 0.75rem;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
	margin: 0.5rem 0;
	line-height: 1.3;
}

.woocommerce ul.products li.product .price {
	font-weight: 600;
	color: #1b5e20;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #1a237e;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95rem;
	text-decoration: none !important;
	line-height: 1.4;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: #283593;
	color: #fff !important;
}

/* Single product */
.woocommerce div.product {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.woocommerce div.product {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.woocommerce div.product .summary {
	padding-top: 0;
}

.woocommerce div.product p.price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1b5e20;
}

/* Forms */
.woocommerce .quantity .qty {
	padding: 0.35rem 0.5rem;
	width: 4rem;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
	list-style: none;
}

.woocommerce-message {
	background: #e8f5e9;
	border-left: 4px solid #2e7d32;
}

.woocommerce-info {
	background: #e3f2fd;
	border-left: 4px solid #1565c0;
}

.woocommerce-error {
	background: #ffebee;
	border-left: 4px solid #c62828;
}

/* Tables (cart, checkout) */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.65rem 0.5rem;
	border-bottom: 1px solid #eee;
	text-align: left;
}

/* Checkout */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	margin-bottom: 1rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	max-width: 100%;
	padding: 0.45rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 1rem;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	gap: 0.35rem;
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
	flex-wrap: wrap;
}

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}

/* Posts / pages (blog) */
.rsl-entry {
	margin-bottom: 2rem;
}

.rsl-entry-meta {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 0.5rem;
}

/* Alignment helpers from WP */
.alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.search-form input[type='search'] {
	padding: 0.4rem 0.5rem;
	margin-right: 0.35rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.search-form button {
	padding: 0.4rem 0.75rem;
	border: 1px solid #1a237e;
	background: #1a237e;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}
