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

:root {
	--primary-color: #8f2d22;
	--primary-hover: #782118;
	--primary-active: #5f1812;
	--secondary-color: #c9902d;
	--secondary-hover: #af7d22;
	--accent-color: #f6e3c2;
	--accent-strong: #edd0a7;
	--warm-tint: #fbf2e7;
	--warm-tint-strong: #f4e4d0;
	--bg-color: #f6efe5;
	--surface-color: #fffaf5;
	--surface-alt: #f4e7d7;
	--surface-strong: #ecd7be;
	--text-color: #4b3327;
	--text-light: #846555;
	--heading-color: #341c14;
	--white: #ffffff;
	--border-color: #ddc4a9;
	--border-strong: #caa27b;
	--success-color: #2f8a57;
	--warning-color: #c77a1f;
	--danger-color: #bc4b3f;
	--sale-tag-bg: #9d3326;
	--sale-tag-text: #fff6eb;
	--price-color: #922a1e;
	--old-price-color: #9b7e66;
	--header-top-bg: #fff6ea;
	--footer-bg: #ead8c0;
	--hero-overlay-bg: rgba(255, 248, 239, 0.94);
	--focus-ring: 0 0 0 3px rgba(201, 144, 45, 0.22);
	--focus-ring-strong: 0 0 0 4px rgba(143, 45, 34, 0.18);
	--disabled-bg: #e7d8c5;
	--disabled-text: #a48b76;
	--disabled-border: #d8c1aa;
	--shadow: 0 24px 60px rgba(95, 47, 26, 0.16);
	--shadow-sm: 0 12px 28px rgba(95, 47, 26, 0.12);
	--radius-sm: 10px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--transition: all 0.2s ease;
	--font-body: "Archivo", "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 10% 8%, rgba(201, 144, 45, 0.14), transparent 36%),
		radial-gradient(circle at 88% 2%, rgba(143, 45, 34, 0.12), transparent 28%),
		linear-gradient(180deg, rgba(255, 248, 239, 0.94) 0%, rgba(246, 239, 229, 1) 100%);
	line-height: 1.65;
	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;
}

::selection {
	background: rgba(201, 144, 45, 0.24);
	color: var(--heading-color);
}

a {
	color: var(--primary-color);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--primary-hover);
	text-decoration: none;
}

:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.breadcrumb-text {
	color: var(--text-light);
	font-size: 0.9rem;
}

.breadcrumb-text a {
	color: var(--heading-color);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 26px;
	background: linear-gradient(180deg, #a3382b 0%, var(--primary-color) 100%);
	color: var(--white);
	font-weight: 600;
	border-radius: 999px;
	transition: var(--transition);
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(143, 45, 34, 0.16);
	border: 1px solid var(--primary-color);
	margin: 0 auto;
	width: 80%;
}

.btn:hover {
	background: linear-gradient(180deg, #b44335 0%, var(--primary-hover) 100%);
	color: var(--white);
	border-color: var(--primary-hover);
	box-shadow: 0 14px 28px rgba(143, 45, 34, 0.2);
	transform: translateY(-1px);
}

.btn:active,
.btn.active {
	background: linear-gradient(180deg, #7c2219 0%, var(--primary-active) 100%);
	border-color: var(--primary-active);
	box-shadow: inset 0 2px 6px rgba(52, 28, 20, 0.2);
	transform: translateY(0);
}

.btn:focus-visible {
	box-shadow: var(--focus-ring-strong);
}

.btn[disabled],
.btn:disabled {
	background: var(--disabled-bg);
	border-color: var(--disabled-border);
	color: var(--disabled-text);
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

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

.btn-outline:hover {
	background: var(--warm-tint);
	border-color: var(--primary-hover);
	color: var(--primary-hover);
}

.btn-outline:active,
.btn-outline.active {
	background: rgba(143, 45, 34, 0.08);
	border-color: var(--primary-active);
	color: var(--primary-active);
}

.btn-outline[disabled],
.btn-outline:disabled {
	background: var(--surface-alt);
	border-color: var(--disabled-border);
	color: var(--disabled-text);
}

/* 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(52, 28, 20, 0.42);
}
.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);
	border-radius: var(--radius-sm);
	background: var(--surface-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-btn:hover {
	background: var(--warm-tint);
	color: var(--primary-color);
}
.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(--surface-color);
	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(--surface-color);
	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: rgba(143, 45, 34, 0.08);
	color: var(--primary-color);
	font-weight: 600;
}
.size-select-option:hover {
	border-color: var(--border-strong);
	background: var(--warm-tint);
}
.size-select-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}
.size-select-actions .btn {
	width: calc(50% - 5px);
	margin: 0;
}
.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,
.form-control {
	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);
	color: var(--text-color);
	resize: none;
}

input:hover,
textarea:hover,
select:hover,
.form-control:hover {
	border-color: var(--border-strong);
	background: #fffdf8;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: var(--focus-ring);
	background: var(--white);
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
	color: #a28674;
}

input:disabled,
textarea:disabled,
select:disabled,
.form-control:disabled,
.disabled {
	background: var(--disabled-bg);
	color: var(--disabled-text);
	border-color: var(--disabled-border);
}

/* Toast */
.oc-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(0px);
	background-color: rgba(52, 28, 20, 0.88);
	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: var(--warning-color);
}
.oc-toast.type-error {
	background-color: var(--danger-color);
}
.oc-toast.type-success {
	background-color: var(--success-color);
}

/* 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;
	box-shadow: 0 6px 18px rgba(95, 47, 26, 0.05);
}
.product-card:hover {
	box-shadow: var(--shadow-sm);
	border-color: var(--border-strong);
	transform: translateY(-2px);
}
.product-card:focus-within {
	border-color: var(--primary-color);
	box-shadow: var(--focus-ring-strong);
}
.product-img-wrap {
	position: relative;
	overflow: hidden;
	margin-bottom: 15px;
	height: 220px;
	background: linear-gradient(180deg, #fffdf9 0%, var(--warm-tint) 100%);
	border-radius: var(--radius-sm);
	border: 1px solid rgba(221, 196, 169, 0.6);
}
.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(--sale-tag-bg);
	color: var(--sale-tag-text);
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(143, 45, 34, 0.2);
}
.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;
	min-height: 2rem;
}
.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;
	display: none;
}
.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(--price-color);
	font-weight: 700;
	white-space: nowrap;
}
.old-price {
	text-decoration: line-through;
	color: var(--old-price-color);
	font-size: 0.9em;
	white-space: nowrap;
}
.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: 1px solid rgba(221, 196, 169, 0.9);
	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(--warm-tint);
	color: var(--primary-color);
	border-color: var(--primary-color);
}
.action-btn:active,
.action-btn.active {
	background: var(--primary-color);
	color: white;
}

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