@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
	--primary-color: #2b2320;
	--primary-hover: #3a2e29;
	--accent-color: #f4e6d5;
	--bg-color: #faf6ef;
	--surface-color: #fffaf3;
	--text-color: #2b2320;
	--text-light: #6f625a;
	--heading-color: #1f1814;
	--white: #ffffff;
	--border-color: #e7ddd1;
	--shadow: 0 24px 60px rgba(78, 60, 46, 0.12);
	--shadow-sm: 0 10px 24px rgba(78, 60, 46, 0.08);
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 22px;
	--transition: all 0.2s ease;
	--font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--font-heading: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

	--header-height: 80px;
	--header-mobile-height: 60px;
}

body {
	font-family: var(--font-body);
	color: var(--text-color);
	background-color: var(--bg-color);
	background-image: radial-gradient(circle at 12% 12%, rgba(219, 184, 133, 0.18), transparent 45%),
		radial-gradient(circle at 88% 0%, rgba(240, 185, 170, 0.14), transparent 38%);
	line-height: 1.6;
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Utilities */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.hidden {
	display: none !important;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 24px;
	background-color: var(--primary-color);
	color: var(--white);
	font-weight: 500;
	border-radius: var(--radius-md);
	transition: var(--transition);
	cursor: pointer;
	box-shadow: none;
	border: 1px solid transparent;
}

.btn:hover {
	background-color: var(--white);
	color: var(--primary-color);
	border-color: var(--primary-color);
	box-shadow: none;
}

.btn-outline {
	background-color: transparent;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
	box-shadow: none;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

/* Size Select Modal */
.size-select-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1200;
}
.size-select-modal.active {
	display: flex;
}
.size-select-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}
.size-select-card {
	position: relative;
	z-index: 1;
	background: var(--surface-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 24px;
	width: min(420px, calc(100% - 32px));
}

.size-select-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.size-select-label {
	font-weight: 600;
	color: var(--heading-color);
}
.size-select-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border-color);
	overflow: hidden;
}
.size-select-qty-btn {
	border: none;
	background: transparent;
	color: var(--text-color);
	padding: 6px 20px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}
.size-select-qty-input {
	width: 48px;
	border: none;
	text-align: center;
	font-weight: 600;
	color: var(--text-color);
	border-radius: 0;
	background: transparent;
	border-top: none !important;
	border-bottom: none !important;
}
.size-select-qty-input {
	border-radius: 0 !important;
}
.size-select-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.size-select-header h3 {
	margin: 0;
	font-size: 1.2rem;
}
.size-select-close {
	border: 1px solid var(--border-color);
	background: var(--white);
	color: var(--text-color);
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	cursor: pointer;
}
.size-select-hint {
	color: var(--text-light);
	font-size: 0.95rem;
	margin-bottom: 12px;
}
.size-select-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}
.size-select-option {
	border: 1px solid var(--border-color);
	background: var(--white);
	color: var(--text-color);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	min-width: 48px;
	text-align: center;
}
.size-select-option.active {
	border-color: var(--primary-color);
	background: var(--accent-color);
	color: var(--primary-color);
	font-weight: 600;
}
.size-select-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}
.size-select-confirm[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--heading-color);
	margin-bottom: 0.5em;
	font-weight: 600;
	font-family: var(--font-heading);
}

h2.section-title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 2rem;
	position: relative;
	letter-spacing: -0.02em;
}

/* Policy page */
#policy-title {
	font-size: 1.6rem;
	margin-bottom: 1rem;
}
#policy-content h4 {
	font-size: 1.1rem;
	margin: 1.2rem 0 0.6rem;
}
#policy-content p {
	font-size: 0.98rem;
	color: var(--text-light);
	margin-bottom: 0.8rem;
}
#policy-content ul {
	padding-left: 1.2rem;
	color: var(--text-light);
	margin-bottom: 0.8rem;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 1rem;
	transition: var(--transition);
	background: var(--surface-color);
	resize: none;
}

input:focus,
textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(43, 35, 32, 0.12);
}

/* Toast */
.oc-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(0px);
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 24px;
	border-radius: 4px;
	opacity: 0;
	transition: var(--transition);
	z-index: 9999;
}
.oc-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(20px);
}
.oc-toast.type-warning {
	background-color: #ff9800;
}
.oc-toast.type-error {
	background-color: #f44336;
}
.oc-toast.type-success {
	background-color: #4caf50;
}

/* Responsive */
@media (max-width: 900px) {
	:root {
		--header-height: 60px;
	}
	h2.section-title {
		font-size: 1.5rem;
	}
}

/* --- Product Card --- */
.product-card {
	border: 1px solid var(--border-color);
	transition: var(--transition);
	padding: 14px;
	border-radius: var(--radius-md);
	position: relative;
	background: var(--surface-color);
	height: var(--product-card-height, 460px);
	display: flex;
	flex-direction: column;
}
.product-card:hover {
	box-shadow: var(--shadow-sm);
	border-color: rgba(43, 35, 32, 0.25);
}
.product-img-wrap {
	position: relative;
	overflow: hidden;
	margin-bottom: 15px;
	height: 220px;
	background: var(--white);
	border-radius: var(--radius-sm);
}
.product-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img {
	transform: scale(1.02);
}
.badge-discount {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--primary-color);
	color: var(--white);
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 999px;
}
.product-info .category {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-light);
	margin-bottom: 6px;
}
.product-info h3 {
	font-size: 1rem;
	margin-bottom: 5px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.product-info a {
	color: var(--text-color);
}
.product-info a:hover {
	color: var(--primary-color);
}
.product-desc {
	color: var(--text-light);
	font-size: 0.9rem;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.price {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	margin-top: auto;
	font-size: 15px;
	width: 100%;
	/* justify-content: space-between; */
}
.curr-price {
	color: var(--primary-color);
	font-weight: 700;
}
.old-price {
	text-decoration: line-through;
	color: #8b7e74;
	font-size: 0.9em;
}
.product-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	opacity: 0;
	transform: translateX(20px);
	transition: var(--transition);
}
.product-card:hover .product-actions {
	opacity: 1;
	transform: translateX(0);
}
.action-btn {
	width: 35px;
	height: 35px;
	background: var(--surface-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
}
.action-btn i {
	line-height: 1;
	display: block;
}
.action-btn:hover {
	background: var(--primary-color);
	color: white;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
