/* RoufaiShop — vitrine web (storefront).
   Design sobre et aéré : bleu #002374 (structure), orange #fe6803 (actions). */

.rs-store {
	--rs-navy: #002374;
	--rs-orange: #fe6803;
	--rs-ink: #1c2333;
	--rs-muted: #6b7280;
	--rs-line: #e3e6ee;
	--rs-surface: #f7f8fb;
	color: var(--rs-ink);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.rs-store *,
.rs-store *::before,
.rs-store *::after {
	box-sizing: border-box;
}

/* --- Titres de section --- */
.rs-section {
	margin: 40px 0;
}

.rs-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.rs-section-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--rs-navy);
	margin: 0;
}

.rs-seeall {
	color: var(--rs-navy);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	white-space: nowrap;
}

.rs-seeall:hover {
	color: var(--rs-orange);
}

/* --- Boutons --- */
.rs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--rs-orange);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 22px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, opacity 0.15s;
	line-height: 1.2;
}

.rs-btn:hover {
	background: #e35c00;
	color: #fff;
}

.rs-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rs-btn-sm {
	padding: 9px 14px;
	font-size: 0.9rem;
	border-radius: 8px;
}

.rs-btn-ghost {
	background: transparent;
	color: var(--rs-navy);
	border: 1px solid var(--rs-line);
}

.rs-btn-ghost:hover {
	background: transparent;
	border-color: var(--rs-navy);
	color: var(--rs-navy);
}

.rs-btn-block {
	width: 100%;
}

/* --- Grille produits --- */
.rs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

@media (max-width: 1023px) {
	.rs-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.rs-grid-featured {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* --- Carte produit --- */
.rs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rs-line);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.15s, transform 0.15s;
}

.rs-card:hover {
	box-shadow: 0 10px 26px rgba(0, 35, 116, 0.09);
	transform: translateY(-2px);
}

.rs-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--rs-surface);
}

.rs-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rs-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--rs-surface);
}

.rs-badge {
	position: absolute;
	top: 10px;
	z-index: 2;
	padding: 4px 9px;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
}

.rs-badge-sale {
	left: 10px;
	background: var(--rs-orange);
}

.rs-badge-out {
	right: 10px;
	background: rgba(28, 35, 51, 0.78);
}

.rs-card-fav {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--rs-line);
	background: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.rs-card-fav svg {
	fill: none;
	stroke: var(--rs-navy);
	stroke-width: 1.8;
}

.rs-card-fav.is-active svg {
	fill: var(--rs-orange);
	stroke: var(--rs-orange);
}

.rs-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	flex: 1;
}

.rs-card-title {
	color: var(--rs-ink);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.35;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rs-card-title:hover {
	color: var(--rs-navy);
}

.rs-card-price {
	color: var(--rs-navy);
	font-weight: 800;
	font-size: 1rem;
}

.rs-card-price del {
	color: var(--rs-muted);
	font-weight: 400;
	font-size: 0.85rem;
	margin-left: 6px;
}

.rs-card-price ins {
	text-decoration: none;
}

.rs-card-body .rs-btn {
	margin-top: auto;
}

/* --- Carte « sélection » (fond marine) --- */
.rs-featured {
	position: relative;
	display: block;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--rs-navy);
	text-decoration: none;
}

.rs-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rs-featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 35%, rgba(0, 35, 116, 0.55) 68%, rgba(0, 35, 116, 0.95) 100%);
}

.rs-featured-body {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	color: #fff;
}

.rs-featured-title {
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rs-featured-price {
	display: inline-block;
	background: var(--rs-orange);
	color: #fff;
	font-weight: 800;
	font-size: 0.85rem;
	padding: 5px 10px;
	border-radius: 8px;
}

/* --- Carrousel à flèches --- */
.rs-carousel {
	position: relative;
}

.rs-carousel-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 6px 2px;
	-webkit-overflow-scrolling: touch;
}

.rs-carousel-track::-webkit-scrollbar {
	display: none;
}

.rs-carousel-track > * {
	scroll-snap-align: start;
	min-width: 0; /* laisse les éléments respecter leur flex-basis */
}

.rs-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--rs-line);
	box-shadow: 0 6px 18px rgba(0, 35, 116, 0.14);
	color: var(--rs-navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	transition: opacity 0.15s, background 0.15s;
}

.rs-carousel-arrow:hover {
	background: var(--rs-navy);
	color: #fff;
}

.rs-carousel-prev {
	left: -14px;
}

.rs-carousel-next {
	right: -14px;
}

.rs-carousel-arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

/* Nombre d'éléments visibles par type de carrousel (desktop / tablette). */
.rs-carousel-cards .rs-carousel-track {
	gap: 24px;
}

.rs-carousel-cards .rs-carousel-track > * {
	flex: 0 0 calc((100% - 3 * 24px) / 4);
}

.rs-carousel-featured .rs-carousel-track > * {
	flex: 0 0 calc((100% - 2 * 18px) / 3);
}

.rs-carousel-cats .rs-carousel-track {
	gap: 12px;
}

.rs-carousel-cats .rs-carousel-track > * {
	flex: 0 0 116px;
}

@media (max-width: 1023px) {
	.rs-carousel-cards .rs-carousel-track > * {
		flex-basis: calc((100% - 24px) / 2);
	}

	.rs-carousel-featured .rs-carousel-track > * {
		flex-basis: calc((100% - 18px) / 2);
	}

	.rs-carousel-cats .rs-carousel-track > * {
		flex-basis: 104px;
	}
}

@media (max-width: 599px) {
	.rs-carousel-arrow {
		display: none;
	}

	.rs-carousel-cards .rs-carousel-track > * {
		flex-basis: 46%;
	}

	.rs-carousel-featured .rs-carousel-track > * {
		flex-basis: 74%;
	}

	.rs-carousel-cats .rs-carousel-track > * {
		flex-basis: 31%;
	}
}

/* --- Cartes catégories (bordées, arrondies) --- */
.rs-cat {
	display: block;
	text-decoration: none;
	color: var(--rs-ink);
	background: #fff;
	border: 1px solid var(--rs-line);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.rs-cat:hover {
	border-color: var(--rs-navy);
	box-shadow: 0 6px 16px rgba(0, 35, 116, 0.08);
	transform: translateY(-2px);
}

.rs-cat-media {
	display: block;
	aspect-ratio: 1;
	background: #fff;
}

.rs-cat-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rs-cat-name {
	display: -webkit-box;
	padding: 7px 6px;
	text-align: center;
	font-size: 0.74rem;
	font-weight: 600;
	line-height: 1.2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rs-cat:hover .rs-cat-name {
	color: var(--rs-navy);
}

/* --- Bouton WhatsApp flottant --- */
.rs-whatsapp-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	z-index: 9998;
	transition: transform 0.15s;
}

.rs-whatsapp-fab:hover {
	transform: scale(1.06);
	color: #fff;
}

/* --- Bouton « ajouté » (Voir le panier) --- */
.rs-btn.rs-added {
	background: var(--rs-navy);
}

.rs-btn.rs-added:hover {
	background: #001a57;
}

/* --- Barre de filtres (archive) --- */
.rs-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 20px 0 24px;
}

.rs-search {
	flex: 1;
	min-width: 200px;
	position: relative;
}

.rs-search input,
.rs-select {
	width: 100%;
	border: 1px solid var(--rs-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 0.95rem;
	color: var(--rs-ink);
	background: #fff;
}

.rs-select {
	width: auto;
	min-width: 170px;
}

.rs-search input:focus,
.rs-select:focus {
	outline: none;
	border-color: var(--rs-navy);
}

/* --- Fiche produit --- */
.rs-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	margin: 32px 0;
}

.rs-gallery-main {
	border: 1px solid var(--rs-line);
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--rs-surface);
}

.rs-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rs-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.rs-gallery-thumb {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--rs-line);
	cursor: pointer;
	padding: 0;
	background: var(--rs-surface);
}

.rs-gallery-thumb.is-active {
	border-color: var(--rs-navy);
}

.rs-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rs-product-title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--rs-ink);
	margin: 0 0 12px;
	line-height: 1.3;
}

.rs-product-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--rs-navy);
	margin-bottom: 18px;
}

.rs-product-price del {
	color: var(--rs-muted);
	font-weight: 400;
	font-size: 1rem;
	margin-left: 8px;
}

.rs-product-price ins {
	text-decoration: none;
}

.rs-stock {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 8px;
	margin-bottom: 18px;
}

.rs-stock-in {
	background: #e8f5ee;
	color: #146c43;
}

.rs-stock-out {
	background: #fdecec;
	color: #b3261e;
}

.rs-field {
	margin-bottom: 18px;
}

.rs-field > label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 8px;
	color: var(--rs-ink);
}

.rs-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rs-chip {
	border: 1px solid var(--rs-line);
	border-radius: 8px;
	padding: 9px 14px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--rs-ink);
}

.rs-chip.is-active {
	background: var(--rs-navy);
	border-color: var(--rs-navy);
	color: #fff;
}

.rs-chip:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rs-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--rs-line);
	border-radius: 10px;
	overflow: hidden;
}

.rs-qty button {
	width: 42px;
	height: 44px;
	border: none;
	background: #fff;
	color: var(--rs-navy);
	font-size: 1.2rem;
	cursor: pointer;
}

.rs-qty input {
	width: 46px;
	height: 44px;
	text-align: center;
	border: none;
	border-left: 1px solid var(--rs-line);
	border-right: 1px solid var(--rs-line);
	font-size: 1rem;
	font-weight: 700;
	color: var(--rs-ink);
	-moz-appearance: textfield;
}

.rs-qty input::-webkit-outer-spin-button,
.rs-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rs-product-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}

.rs-product-desc {
	margin-top: 40px;
	line-height: 1.7;
	color: var(--rs-ink);
}

.rs-product-desc h2 {
	color: var(--rs-navy);
	font-size: 1.2rem;
}

/* --- Icône panier (en-tête) --- */
.rs-cart-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--rs-navy);
	text-decoration: none;
}

.rs-cart-button svg {
	fill: currentColor;
}

.rs-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--rs-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* --- États vides / messages --- */
.rs-empty {
	text-align: center;
	color: var(--rs-muted);
	padding: 64px 16px;
}

.rs-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--rs-ink);
	color: #fff;
	padding: 13px 22px;
	border-radius: 10px;
	font-size: 0.92rem;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.2s, transform 0.2s;
	pointer-events: none;
	max-width: calc(100vw - 32px);
}

.rs-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.rs-toast-success {
	background: #146c43;
}

.rs-toast-error {
	background: #b3261e;
}

/* --- Pagination --- */
.rs-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 28px 0;
	justify-content: center;
}

.rs-pagination a,
.rs-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--rs-line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--rs-ink);
	font-weight: 600;
}

.rs-pagination .current {
	background: var(--rs-navy);
	border-color: var(--rs-navy);
	color: #fff;
}

/* --- Panier --- */
.rs-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 28px;
	margin: 28px 0;
	align-items: start;
}

.rs-cart-line {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--rs-line);
	align-items: center;
}

.rs-cart-media {
	display: block;
}

.rs-cart-img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--rs-surface);
	display: block;
}

.rs-cart-name {
	font-weight: 600;
	color: var(--rs-ink);
	text-decoration: none;
	display: block;
}

.rs-cart-name:hover {
	color: var(--rs-navy);
}

.rs-cart-unit {
	color: var(--rs-muted);
	font-size: 0.85rem;
	margin: 4px 0 8px;
}

.rs-cart-remove {
	background: none;
	border: none;
	padding: 0;
	color: #b3261e;
	font-size: 0.82rem;
	cursor: pointer;
}

.rs-cart-qty {
	text-align: right;
}

.rs-cart-line-total {
	font-weight: 700;
	color: var(--rs-navy);
	margin-top: 8px;
}

.rs-cart-summary,
.rs-checkout-summary {
	background: var(--rs-surface);
	border: 1px solid var(--rs-line);
	border-radius: 14px;
	padding: 22px;
	position: sticky;
	top: 16px;
}

.rs-summary-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--rs-navy);
	margin: 0 0 16px;
}

.rs-summary-row,
.rs-summary-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 0.92rem;
}

.rs-summary-line {
	color: var(--rs-muted);
	font-size: 0.85rem;
}

.rs-summary-coupon {
	color: #146c43;
}

.rs-coupon-remove {
	background: none;
	border: none;
	color: var(--rs-muted);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0 0 0 4px;
}

.rs-summary-total {
	display: flex;
	justify-content: space-between;
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--rs-navy);
	padding-top: 14px;
	margin-top: 6px;
	border-top: 1px solid var(--rs-line);
}

.rs-summary-note {
	font-size: 0.78rem;
	color: var(--rs-muted);
	margin: 8px 0 16px;
}

.rs-coupon {
	margin: 12px 0 18px;
}

.rs-coupon summary {
	cursor: pointer;
	color: var(--rs-navy);
	font-size: 0.88rem;
	font-weight: 600;
}

.rs-coupon-form {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.rs-coupon-input {
	flex: 1;
	border: 1px solid var(--rs-line);
	border-radius: 8px;
	padding: 10px 12px;
	text-transform: uppercase;
}

/* --- Checkout --- */
.rs-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
	margin-bottom: 40px;
}

.rs-panel {
	background: #fff;
	border: 1px solid var(--rs-line);
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 20px;
}

.rs-panel-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--rs-navy);
	margin: 0 0 18px;
}

.rs-form-row {
	display: flex;
	gap: 14px;
}

.rs-form-row .rs-form-field {
	flex: 1;
}

.rs-form-field {
	display: block;
	margin-bottom: 16px;
}

.rs-form-field > span {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 7px;
	color: var(--rs-ink);
}

.rs-form-field input,
.rs-form-field select,
.rs-form-field textarea {
	width: 100%;
	border: 1px solid var(--rs-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 0.95rem;
	color: var(--rs-ink);
	background: #fff;
	box-sizing: border-box;
}

.rs-form-field input:disabled {
	background: var(--rs-surface);
	color: var(--rs-muted);
}

.rs-pay-choice {
	display: flex;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--rs-line);
	border-radius: 12px;
	margin-bottom: 12px;
	cursor: pointer;
	align-items: flex-start;
}

.rs-pay-choice:has(input:checked) {
	border-color: var(--rs-navy);
	background: var(--rs-surface);
}

.rs-pay-choice-title {
	display: block;
	font-weight: 700;
	color: var(--rs-ink);
}

.rs-pay-choice-desc {
	display: block;
	font-size: 0.85rem;
	color: var(--rs-muted);
	margin-top: 2px;
}

.rs-pay-choice-instructions {
	display: block;
	font-size: 0.82rem;
	color: var(--rs-ink);
	margin-top: 8px;
	line-height: 1.5;
	white-space: pre-line;
}

/* --- Confirmation --- */
.rs-confirm {
	text-align: center;
	max-width: 560px;
	margin: 48px auto;
}

.rs-confirm-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #e8f5ee;
	color: #146c43;
	font-size: 38px;
	line-height: 72px;
	margin: 0 auto 20px;
}

.rs-confirm-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--rs-navy);
	margin: 0 0 12px;
}

.rs-confirm-sub {
	color: var(--rs-muted);
	line-height: 1.6;
}

.rs-confirm-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* --- Compte --- */
.rs-account-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 24px 0 12px;
}

.rs-account-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--rs-line);
	margin-bottom: 24px;
}

.rs-account-tab {
	padding: 12px 16px;
	text-decoration: none;
	color: var(--rs-muted);
	font-weight: 600;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.rs-account-tab.is-active {
	color: var(--rs-navy);
	border-bottom-color: var(--rs-orange);
}

.rs-order-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--rs-line);
	border-radius: 12px;
	margin-bottom: 12px;
	text-decoration: none;
	color: var(--rs-ink);
}

.rs-order-row:hover {
	border-color: var(--rs-navy);
}

.rs-order-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rs-order-number {
	font-weight: 700;
}

.rs-order-date {
	font-size: 0.82rem;
	color: var(--rs-muted);
}

.rs-order-status {
	font-size: 0.78rem;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--rs-surface);
	color: var(--rs-navy);
}

.rs-status-processing { background: #e7f0ff; color: #0d6efd; }
.rs-status-completed { background: #e8f5ee; color: #146c43; }
.rs-status-cancelled, .rs-status-failed { background: #fdecec; color: #b3261e; }
.rs-status-on-hold, .rs-status-pending { background: #fff4e5; color: #b26a00; }

.rs-order-total {
	font-weight: 800;
	color: var(--rs-navy);
}

.rs-back {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--rs-navy);
	text-decoration: none;
	font-weight: 600;
}

.rs-order-detail {
	border: 1px solid var(--rs-line);
	border-radius: 14px;
	padding: 22px;
}

.rs-order-detail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.rs-order-items {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.rs-order-items td {
	padding: 10px 0;
	border-bottom: 1px solid var(--rs-line);
}

.rs-right {
	text-align: right;
	font-weight: 600;
}

.rs-order-totals {
	margin-bottom: 20px;
}

.rs-order-address h3 {
	color: var(--rs-navy);
	font-size: 1rem;
	margin: 20px 0 8px;
}

.rs-order-address p {
	color: var(--rs-muted);
	line-height: 1.5;
	margin: 0 0 6px;
}

.rs-alert {
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 0.9rem;
	margin-bottom: 18px;
}

.rs-alert-ok { background: #e8f5ee; color: #146c43; }

/* --- Responsive --- */
@media (max-width: 900px) {
	.rs-product,
	.rs-cart,
	.rs-checkout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.rs-cart-summary,
	.rs-checkout-summary {
		position: static;
	}
}

@media (max-width: 600px) {
	.rs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.rs-section-title {
		font-size: 1.15rem;
	}

	.rs-card-body {
		padding: 10px;
		gap: 6px;
	}

	.rs-card-title {
		font-size: 0.82rem;
	}
}
