:root {
	--primary-color: #c57a3a;
	--primary-hover: #a85f27;
	--accent-color: #fff1e6;
	--bg-color: #fffaf5;
	--surface-color: #ffffff;
	--text-color: #1f2937;
	--text-light: #6b7280;
	--heading-color: #111827;
	--white: #ffffff;
	--border-color: #ede7e3;
	--shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
	--shadow-sm: 0 8px 18px rgba(17, 24, 39, 0.08);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--transition: all 0.2s ease;
	--font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans", sans-serif;
	--font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans", sans-serif;

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

body {
	font-family: var(--font-body);
	color: var(--text-color);
	background-color: var(--bg-color);
	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: var(--shadow-sm);
}

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

.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-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;
}

/* 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);
}

input:focus,
textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(197, 122, 58, 0.2);
}

/* 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: 768px) {
	: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: 10px;
	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: var(--border-color);
}
.product-img-wrap {
	position: relative;
	overflow: hidden;
	margin-bottom: 15px;
	height: 220px;
}
.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.05);
}
.badge-discount {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #ff4444;
	color: white;
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 4px;
}
.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;
}
.curr-price {
	color: var(--primary-color);
	font-weight: 700;
}
.old-price {
	text-decoration: line-through;
	color: #999;
	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;
	}
}
