.sw-shop {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #222;
	max-width: 1000px;
	margin: 0 auto;
}

.sw-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	border: 1px solid rgb(216, 97, 60);
	background: #fff;
	color: rgb(216, 97, 60);
	text-decoration: none;
	cursor: pointer;
	font-size: 15px;
}

.sw-btn-primary {
	background: rgb(216, 97, 60);
	border-color: rgb(216, 97, 60);
	color: #fff;
}

.sw-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: #b32d2e;
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
}

.sw-input {
	display: block;
	width: 100%;
	max-width: 380px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
}

.sw-input-narrow {
	max-width: 120px;
}

.sw-flex-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
}

.sw-flex-row > label {
	flex: 0 0 auto;
}

.sw-qty-input {
	width: 60px;
}

.sw-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin: 12px 0;
}

.sw-notice-success {
	background: #eaf6ea;
	border: 1px solid #2c5f2d;
}

.sw-notice-error {
	background: #fdecea;
	border: 1px solid #b32d2e;
	color: #7d2020;
}

.sw-notice-info {
	background: #eaf2fb;
	border: 1px solid #2c5f8f;
	color: #1d3f5f;
}

/* Login */
.sw-login-screen {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 50vh;
}

.sw-login-box {
	text-align: center;
	max-width: 320px;
}

.sw-login-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

/* Header */
.sw-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 2px solid #eee;
	margin-bottom: 20px;
}

.sw-brand {
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
}

.sw-nav a {
	margin-right: 16px;
	text-decoration: none;
}

.sw-user {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #555;
}

.sw-logout-form {
	display: inline;
}

.sw-page-title {
	margin-bottom: 16px;
}

.sw-catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.sw-catalog-toolbar .sw-page-title {
	margin-bottom: 0;
}

.sw-sort-form {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
}

.sw-sort-form select {
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
}

/* Catalog grid */
.sw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.sw-card {
	display: grid;
	grid-template-rows: auto 1fr auto;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.sw-card:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sw-card-out {
	opacity: 0.55;
}

.sw-card-image {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sw-card-image-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.25s ease;
	touch-action: pan-y;
}

.sw-card-image-track img {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sw-card-dots {
	position: absolute;
	bottom: 6px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 4px;
	z-index: 1;
}

.sw-card-dot {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
}

.sw-card-dot::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sw-card-dot.sw-active::before {
	background: rgb(216, 97, 60);
	border-color: rgb(216, 97, 60);
}

.sw-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #b32d2e;
	color: #fff;
	font-size: 11px;
	padding: 3px 7px;
	border-radius: 3px;
}

.sw-card-title {
	font-weight: 500;
	padding: 10px 12px 2px;
}

.sw-card-price {
	font-size: 14px;
	color: #444;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 0 12px 10px;

	span:last-child {
		flex: 1 1 auto;
		text-align: right;
	}
}

/* Single item */
.sw-item-view {
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
}

.sw-item-gallery {
	flex: 1;
	min-width: 280px;
}

.sw-item-main-image {
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-item-main-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sw-no-image {
	background: #f4f4f4;
}

.sw-item-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.sw-item-thumb {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border: 1px solid #ddd;
	cursor: pointer;
	background: #fff;
}

.sw-item-thumb.sw-active {
	border-color: #2c5f2d;
}

.sw-item-info {
	flex: 1;
	min-width: 280px;
}

.sw-item-price {
	display: flex;
	gap: 16px;
	font-size: 20px;
	font-weight: 600;
	margin: 10px 0 16px;
}

.sw-item-description {
	margin-bottom: 20px;
	line-height: 1.5;
}

.sw-add-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sw-stock-note {
	font-size: 13px;
	color: #777;
}

.sw-out-of-stock {
	color: #b32d2e;
	font-weight: 500;
}

/* Basket */
.sw-basket-table {
	width: 100%;
	border-collapse: collapse;
}

.sw-basket-table th,
.sw-basket-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.sw-basket-thumb img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #eee;
}

.sw-reserved-note {
	font-size: 12px;
	color: #888;
}

.sw-qty-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sw-basket-totals {
	margin: 20px 0;
	font-size: 16px;
	display: flex;
	gap: 24px;
}

/* Checkout */
.sw-checkout-form p {
	margin-bottom: 14px;
}

.sw-disabled-option {
	color: #999;
}

.sw-pay-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.sw-pay-option {
	border-radius: 8px;
	padding: 10px 14px;
	transition: background-color 0.15s ease;
}

.sw-pay-option-label {
	display: block;
	cursor: pointer;
}

.sw-pay-option-disabled .sw-pay-option-label {
	cursor: default;
	color: #999;
}

.sw-pay-details {
	display: none;
	margin-top: 10px;
	padding-left: 26px;
	font-size: 14px;
	color: #555;
}

.sw-pay-details p {
	margin: 0 0 8px;
}

.sw-pay-details select {
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.sw-pay-option-active {
	background: #efece2;
	border-radius: 10px;
}

.sw-pay-option-active .sw-pay-details {
	display: block;
}

.sw-order-success {
	text-align: center;
	padding: 40px 0;
}
