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

:root {
	color-scheme: light;
	--ink: #1f1b1a;
	--paper: #ffffff;
	--paper-dark: #f6f5f4;
	--kimchi-red: #d4573b;
	--kimchi-dark: #a33b28;
	--gold: #d0b06a;
	--jade: #3a6b5f;
	--muted: #6f6763;
	--shadow: 0 12px 28px rgba(25, 18, 16, 0.12);
	--radius: 18px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Noto Sans KR", "Noto Sans", system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
}

h1,
h2,
h3,
h4 {
	font-family: "Noto Serif KR", "Noto Serif", serif;
	margin: 0 0 0.5rem 0;
	color: var(--ink);
}

p {
	margin: 0 0 1rem 0;
	color: var(--muted);
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(1200px, 90vw);
	margin: 0 auto;
}


.site-header {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(30, 21, 17, 0.08);
	position: sticky;
	top: 0;
	z-index: 20;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.2rem 0;
	gap: 2rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.brand-mark {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--kimchi-red);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.2rem;
	box-shadow: var(--shadow);
}

.brand-title {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.brand-subtitle {
	font-size: 0.85rem;
	color: var(--muted);
}

.site-nav {
	display: flex;
	gap: 1.5rem;
	font-weight: 500;
}

.site-nav a {
	padding-bottom: 0.2rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.site-nav a:hover {
	border-color: var(--kimchi-red);
}

.page {
	padding-bottom: 4rem;
}


.hero {
	padding: 0.5rem 0 0.4rem;
	background: #ffffff;
	position: relative;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(212, 87, 59, 0.06) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	position: relative;
	z-index: 1;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 0.7rem;
	color: var(--kimchi-dark);
}

.lead {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.hero-actions {
	display: flex;
	gap: 0.75rem;
	margin: 0.75rem 0;
}

.btn {
	border-radius: 999px;
	padding: 0.7rem 1.6rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
	background: var(--kimchi-red);
	color: #fff;
	box-shadow: var(--shadow);
}

.btn.ghost {
	background: transparent;
	border-color: var(--kimchi-red);
	color: var(--kimchi-red);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(184, 58, 45, 0.18);
}


.hero h1 {
	font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.hero-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.section {
	padding: 4rem 0;
}

.section.store {
	padding-top: 0.75rem;
}


.store {
	background: #ffffff;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
}

.product-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 1.4rem;
	border: 1px solid rgba(30, 21, 17, 0.08);
	box-shadow: 0 12px 28px rgba(30, 21, 17, 0.1);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}


.product-media {
	background: #f6f6f6;
	border-radius: 14px;
	padding: 0.6rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-badge {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kimchi-dark);
	background: rgba(184, 58, 45, 0.1);
	align-self: flex-start;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}

.product-card h3 {
	margin-bottom: 0.2rem;
}

.product-desc {
	font-size: 0.95rem;
	margin-bottom: 0.3rem;
}

.product-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.4rem;
}

.price {
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--ink);
}

.store-note {
	margin-top: 1.5rem;
	font-size: 0.9rem;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
	align-items: center;
}

.contact-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.contact-messages {
	margin: 1rem 0 1.5rem;
	display: grid;
	gap: 0.6rem;
}

.contact-message {
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-weight: 600;
	background: rgba(58, 107, 95, 0.1);
	color: var(--jade);
	border: 1px solid rgba(58, 107, 95, 0.2);
}

.contact-message.error {
	background: rgba(212, 87, 59, 0.1);
	color: var(--kimchi-dark);
	border-color: rgba(212, 87, 59, 0.2);
}

.contact-form {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #ffffff;
	padding: 1.5rem;
	border-radius: var(--radius);
	border: 1px solid rgba(31, 27, 26, 0.08);
	box-shadow: var(--shadow);
}

.contact-form label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
	color: var(--ink);
}

.contact-form span {
	display: block;
}

.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(31, 27, 26, 0.15);
	padding: 0.7rem 0.9rem;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fffdfb;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--kimchi-red);
	box-shadow: 0 0 0 3px rgba(212, 87, 59, 0.15);
}

.contact-form button {
	justify-self: flex-start;
}

.site-footer {
	background: #1f1410;
	color: #f5ece1;
	padding: 2rem 0;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.footer-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.footer-company {
	font-size: 0.85rem;
	opacity: 0.7;
	margin-top: 0.5rem;
}

.footer-links {
	display: flex;
	gap: 1rem;
}

@media (max-width: 768px) {
	.header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-nav {
		flex-wrap: wrap;
	}

	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Cart icon in header */
.cart-link {
	position: relative;
	display: flex;
	align-items: center;
}

.cart-icon-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.cart-icon {
	width: 32px;
	height: 32px;
	transition: transform 0.2s ease;
}

.cart-link:hover .cart-icon {
	transform: scale(1.1);
}

.cart-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--kimchi-red);
	color: white;
	font-size: 0.7rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(212, 87, 59, 0.4);
}

/* Toast notifications */
.toast-notification {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 1rem 1.5rem;
	background: var(--jade);
	color: white;
	border-radius: 12px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transform: translateY(100px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	z-index: 1000;
}

.toast-notification.show {
	transform: translateY(0);
	opacity: 1;
}

.toast-notification.toast-error {
	background: var(--kimchi-red);
}

/* Cart page styles */
.cart-section h1,
.checkout-section h1,
.success-section h1 {
	margin-bottom: 2rem;
}

.cart-items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
}

.cart-item {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	gap: 1.5rem;
	align-items: center;
	background: white;
	padding: 1.25rem;
	border-radius: var(--radius);
	border: 1px solid rgba(30, 21, 17, 0.08);
	box-shadow: 0 4px 12px rgba(30, 21, 17, 0.06);
}

.cart-item-info h3 {
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.cart-item-packaging {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.25rem;
}

.cart-item-price {
	font-weight: 600;
	color: var(--ink);
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.qty-btn {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(30, 21, 17, 0.15);
	border-radius: 8px;
	background: white;
	cursor: pointer;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.qty-btn:hover {
	background: var(--paper-dark);
	border-color: var(--kimchi-red);
}

.qty-input {
	width: 50px;
	text-align: center;
	border: 1px solid rgba(30, 21, 17, 0.15);
	border-radius: 8px;
	padding: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
}

.qty-input:focus {
	outline: none;
	border-color: var(--kimchi-red);
}

.cart-item-total {
	font-weight: 700;
	font-size: 1.1rem;
	min-width: 80px;
	text-align: right;
}

.cart-item-remove {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--muted);
	transition: color 0.2s ease;
}

.cart-item-remove:hover {
	color: var(--kimchi-red);
}

.cart-summary {
	background: white;
	padding: 1.5rem;
	border-radius: var(--radius);
	border: 1px solid rgba(30, 21, 17, 0.08);
	box-shadow: 0 4px 12px rgba(30, 21, 17, 0.06);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 400px;
	margin-left: auto;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	font-size: 1.25rem;
	font-weight: 700;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(30, 21, 17, 0.08);
}

.checkout-btn {
	text-align: center;
}

.cart-empty {
	text-align: center;
	padding: 4rem 2rem;
	background: white;
	border-radius: var(--radius);
	border: 1px solid rgba(30, 21, 17, 0.08);
}

.cart-empty p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
}

/* Checkout page styles */
.checkout-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 2rem;
	align-items: start;
}

.checkout-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.checkout-alert {
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: rgba(212, 87, 59, 0.1);
	border: 1px solid rgba(212, 87, 59, 0.2);
	color: var(--kimchi-dark);
	font-weight: 600;
}

.form-section {
	background: white;
	padding: 1.5rem;
	border-radius: var(--radius);
	border: 1px solid rgba(30, 21, 17, 0.08);
	box-shadow: 0 4px 12px rgba(30, 21, 17, 0.06);
}

.form-section h2 {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(30, 21, 17, 0.08);
}

.form-section label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.form-section label:last-child {
	margin-bottom: 0;
}

.form-section label span {
	font-weight: 600;
	color: var(--ink);
	font-size: 0.9rem;
}

.form-section input,
.form-section select {
	width: 100%;
	border-radius: 10px;
	border: 1px solid rgba(31, 27, 26, 0.15);
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	background: #fffdfb;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-section input:focus,
.form-section select:focus {
	outline: none;
	border-color: var(--kimchi-red);
	box-shadow: 0 0 0 3px rgba(212, 87, 59, 0.15);
}

.carrier-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.carrier-option {
	cursor: pointer;
}

.carrier-option input {
	display: none;
}

.carrier-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	border: 2px solid rgba(30, 21, 17, 0.1);
	border-radius: 12px;
	background: #fffdfb;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.carrier-option input:checked + .carrier-box {
	border-color: var(--kimchi-red);
	background: rgba(212, 87, 59, 0.05);
}

.carrier-name {
	font-weight: 600;
}

.carrier-price {
	color: var(--jade);
	font-weight: 600;
}

.pay-btn {
	width: 100%;
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.order-summary-mobile {
	display: none;
}

.checkout-sidebar {
	position: sticky;
	top: 100px;
}

.order-summary-card {
	background: white;
	padding: 1.5rem;
	border-radius: var(--radius);
	border: 1px solid rgba(30, 21, 17, 0.08);
	box-shadow: 0 4px 12px rgba(30, 21, 17, 0.06);
}

.order-summary-card h2 {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(30, 21, 17, 0.08);
}

.order-items {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(30, 21, 17, 0.08);
}

.order-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.order-item-details {
	flex: 1;
}

.order-item-name {
	font-weight: 600;
	display: block;
}

.order-item-packaging {
	font-size: 0.85rem;
	color: var(--muted);
}

.order-item-qty {
	color: var(--muted);
	font-size: 0.9rem;
}

.order-item-price {
	font-weight: 600;
	min-width: 60px;
	text-align: right;
}

.order-subtotal,
.order-shipping {
	display: flex;
	justify-content: space-between;
	color: var(--muted);
	margin-bottom: 0.5rem;
}

.order-total {
	display: flex;
	justify-content: space-between;
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(30, 21, 17, 0.08);
}

.back-to-cart {
	display: block;
	margin-top: 1rem;
	text-align: center;
	color: var(--muted);
	transition: color 0.2s ease;
}

.back-to-cart:hover {
	color: var(--kimchi-red);
}

/* Success page */
.success-section {
	padding-top: 4rem;
}

.success-card {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
	background: white;
	padding: 3rem 2rem;
	border-radius: var(--radius);
	border: 1px solid rgba(30, 21, 17, 0.08);
	box-shadow: var(--shadow);
}

.success-icon {
	color: var(--jade);
	margin-bottom: 1.5rem;
}

.success-message {
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.order-details {
	text-align: left;
	background: var(--paper-dark);
	padding: 1.5rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
}

.order-detail {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(30, 21, 17, 0.06);
}

.order-detail:last-child {
	border-bottom: none;
}

.order-detail .label {
	color: var(--muted);
}

.order-detail .value {
	font-weight: 600;
}

.delivery-note {
	font-size: 0.95rem;
	color: var(--muted);
	margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
	.checkout-grid {
		grid-template-columns: 1fr;
	}
	
	.checkout-sidebar {
		display: none;
	}
	
	.order-summary-mobile {
		display: block;
	}
}

@media (max-width: 600px) {
	.cart-item {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.cart-item-total {
		text-align: left;
	}
	
	.cart-item-quantity {
		justify-content: flex-start;
	}
}