/*
Theme Name: Rahnuma Shop COD Landing
Theme URI: https://sototashop.store/
Author: Rahnuma Shop
Author URI: https://sototashop.store/
Description: WooCommerce-based single-product COD (Cash on Delivery) landing page theme, matching the ÉnergieAlpha-style landing page template (green top ribbon, red section banners, green checkmark lists, brown feature captions, repeated order CTAs, and a two-column checkout box). The layout is driven by real WooCommerce product data and ships with a working AJAX order handler that creates an actual WooCommerce order, replacing the original template's demo alert() form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Requires Plugins: woocommerce
Text Domain: rahnumashop
License: GNU General Public License v2 or later
License URI: LICENSE
*/

/* ==========================================================================
   Design tokens (matches the source landing-page template)
   ========================================================================== */

:root {
	--rns-green: #63ad20;
	--rns-green-dark: #438d12;
	--rns-red: #f10b0b;
	--rns-ink: #20252b;
	--rns-muted: #66716a;
	--rns-line: #e5e9e1;
	--rns-cream: #f8fbf5;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--rns-ink);
	font-family: Arial, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px;
	width: 1px;
}

/* ==========================================================================
   Default site chrome (blog/shop/cart pages — not the landing template)
   ========================================================================== */

.rns-site-header {
	background: var(--rns-green);
	padding: 14px 0;
}

.rns-site-header .rns-container {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

.rns-site-header .site-title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.rns-site-header .site-title a {
	color: #fff;
	text-decoration: none;
}

.rns-primary-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding: 0;
	margin: 0;
}

.rns-primary-menu a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 600px) {
	.rns-site-header .rns-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.rns-primary-menu {
		width: 100%;
		gap: 8px 14px;
	}

	.rns-primary-menu a {
		font-size: 14px;
	}
}

.rns-site-footer {
	background: #1b1b1b;
	color: #ddd;
	padding: 32px 0;
	text-align: center;
	margin-top: 40px;
}

.rns-site-footer a {
	color: #9ed35e;
}

.rns-page-content {
	max-width: 920px;
	margin: 0 auto;
	padding: 24px 18px 42px;
}

.woocommerce ul.products li.product {
	border: 1px solid var(--rns-line);
	border-radius: 8px;
	padding: 12px;
	text-align: center;
}

.woocommerce ul.products li.product img {
	border-radius: 6px;
	margin: 0 auto 10px;
}

.woocommerce span.price ins {
	color: var(--rns-green-dark);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
	background: var(--rns-green-dark);
	color: #fff;
	border-radius: 4px;
	border: 1px solid #3a7e10;
	padding: 9px 24px;
	font-weight: 700;
}

/* ==========================================================================
   Landing page template — scoped under .rns-landing so it never bleeds
   into shop/cart/blog pages
   ========================================================================== */

.rns-landing .top-ribbon {
	height: 52px;
	background: linear-gradient(176deg, #d6edc7 0 34%, #8bc64f 35% 57%, #60ad1e 58%);
	border: 1px solid #d7e8cd;
	position: relative;
}

.rns-landing .ribbon-logo {
	position: absolute;
	left: 50%;
	top: 5px;
	transform: translateX(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #e2eadb;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: bold;
	color: var(--rns-green-dark);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.13);
	overflow: hidden;
}

.rns-landing .ribbon-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rns-landing main {
	max-width: 920px;
	margin: auto;
	padding: 0 18px 42px;
}

.rns-landing .product-head {
	text-align: center;
	padding: 8px 0 2px;
}

.rns-landing h1 {
	font-size: clamp(22px, 3vw, 31px);
	margin: 0;
	color: #5fae25;
	line-height: 1.25;
}

.rns-landing .sub {
	font-size: 13px;
	color: #6a9d45;
	margin: 3px 0 10px;
}

.rns-landing .hero-img {
	width: min(260px, 78vw);
	height: 270px;
	object-fit: contain;
	border: 1px solid #dce9d2;
	border-radius: 6px;
	box-shadow: 0 3px 12px rgba(90, 140, 58, 0.13);
	background: #fff;
	margin: 0 auto;
}

.rns-landing .tagline {
	margin: 10px auto 8px;
	max-width: 620px;
	font-size: 15px;
	text-align: center;
}

.rns-landing .btn {
	display: inline-block;
	background: var(--rns-green-dark);
	color: #fff;
	text-decoration: none;
	border: 1px solid #3a7e10;
	border-radius: 4px;
	padding: 9px 24px;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.13);
	cursor: pointer;
}

.rns-landing .btn:hover {
	background: #36790b;
	color: #fff;
}

.rns-landing .btn-wrap {
	text-align: center;
}

/* ==========================================================================
   Landing page — optional hero extras (pill badge, checklist, rating)
   ========================================================================== */

.rns-landing .rns-hero-pill {
	display: inline-block;
	margin: 0 auto 8px;
	padding: 5px 16px;
	background: #eaf6e0;
	color: var(--rns-green-dark);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.rns-landing .rns-hero-checks {
	list-style: none;
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	margin: 4px 0 10px;
	padding: 0;
	text-align: left;
}

.rns-landing .rns-hero-checks li {
	font-size: 14px;
	color: #626b64;
}

.rns-landing .rns-hero-checks li::before {
	content: "\2713";
	display: inline-grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #6dbb35;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	margin-right: 7px;
}

.rns-landing .rns-hero-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--rns-muted);
}

.rns-landing .rns-stars {
	color: #f5a623;
	font-size: 16px;
	letter-spacing: 1px;
}

.rns-landing .rns-rating-value {
	font-weight: 700;
	color: var(--rns-ink);
}

.rns-landing .section {
	margin: 12px auto 0;
	max-width: 720px;
}

.rns-landing .section-title,
.rns-landing .rns-content h2 {
	background: var(--rns-red);
	color: #fff;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	border-radius: 6px;
	padding: 3px 10px;
	margin: 12px 0 5px;
}

.rns-landing .checks,
.rns-landing .rns-content ul {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}

.rns-landing .checks li,
.rns-landing .rns-content ul li {
	border-bottom: 1px solid #e9ece6;
	padding: 3px 7px;
	font-size: 14px;
	color: #626b64;
}

.rns-landing .checks li::before,
.rns-landing .rns-content ul li::before {
	content: "\2713";
	display: inline-grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #6dbb35;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	margin-right: 7px;
}

.rns-landing .note,
.rns-landing .rns-content blockquote {
	border: 1px solid #ed7777;
	border-radius: 7px;
	padding: 14px 16px;
	text-align: center;
	font-size: 14px;
	margin: 10px 0;
	background: #fff;
	box-shadow: 0 0 0 2px #f8e8e8;
}

.rns-landing .price {
	text-align: center;
	font-size: 21px;
	font-weight: 700;
	margin: 8px 0 14px;
}

.rns-landing .price .old {
	color: #ef3333;
	text-decoration: line-through;
	margin-right: 20px;
}

.rns-landing .price .new {
	color: #5da820;
}

.rns-landing .product-block {
	text-align: center;
	margin: 10px auto 18px;
}

.rns-landing .product-block h2,
.rns-landing .rns-content h3 {
	/* Reset the .rns-content h2 banner look explicitly: a plain h2 placed
	   inside .product-block matches both selectors with equal specificity,
	   so without this the red background/padding/border-radius from that
	   rule would otherwise leak through here (font-weight is left alone —
	   browsers bold h2 by default anyway, matching the source design). */
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: 24px;
	color: #6ab8db;
	margin: 0 0 5px;
	text-align: center;
}

.rns-landing .product-block img,
.rns-landing .rns-content figure img {
	width: min(260px, 78vw);
	height: 250px;
	object-fit: contain;
	border: 1px solid #dbe8d2;
	border-radius: 6px;
	box-shadow: 0 3px 12px rgba(90, 140, 58, 0.13);
	margin: 0 auto;
	display: block;
}

.rns-landing .feature-caption,
.rns-landing .rns-content figcaption {
	max-width: 260px;
	margin: -2px auto 10px;
	padding: 8px;
	background: #704019;
	color: #fff;
	font-weight: bold;
	border-radius: 0 0 5px 5px;
	text-align: center;
}

.rns-landing .ingredients {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.rns-landing .ingredients span {
	background: #f4f8ef;
	border: 1px solid #e0ebd6;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
}

/* ==========================================================================
   Landing page — trust strip (right under the hero)
   ========================================================================== */

.rns-landing .rns-trust-strip {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 10px;
	max-width: 720px;
	margin: 0 auto 16px;
	padding: 10px 16px;
	background: var(--rns-cream);
	border-radius: 8px;
}

.rns-landing .rns-trust-strip li {
	font-size: 12px;
	font-weight: 700;
	color: var(--rns-green-dark);
	white-space: nowrap;
}

.rns-landing .rns-trust-strip li:not(:last-child)::after {
	content: "•";
	margin-left: 10px;
	color: var(--rns-line);
}

/* ==========================================================================
   Landing page — problem section
   ========================================================================== */

.rns-landing .rns-problem-section {
	max-width: 720px;
	margin: 16px auto 0;
	padding: 0 16px;
	text-align: center;
}

.rns-landing .rns-problem-section h2 {
	color: var(--rns-red);
	font-size: 20px;
	margin: 0 0 10px;
}

.rns-landing .rns-problem-section img {
	max-width: 260px;
	margin: 0 auto 10px;
	border-radius: 6px;
}

/* ==========================================================================
   Landing page — how it works
   ========================================================================== */

.rns-landing .rns-how-section {
	max-width: 720px;
	margin: 20px auto 0;
	padding: 0 16px;
	text-align: center;
}

.rns-landing .rns-how-section h2 {
	color: var(--rns-green-dark);
	font-size: 20px;
	margin: 0 0 10px;
}

.rns-landing .rns-how-section img {
	max-width: 260px;
	margin: 0 auto 12px;
	border-radius: 6px;
}

.rns-landing .rns-how-steps {
	list-style: none;
	counter-reset: rns-step;
	max-width: 480px;
	margin: 10px auto 0;
	padding: 0;
	text-align: left;
}

.rns-landing .rns-how-steps li {
	counter-increment: rns-step;
	position: relative;
	padding: 6px 0 6px 34px;
	font-size: 14px;
	color: #626b64;
	border-bottom: 1px solid #e9ece6;
}

.rns-landing .rns-how-steps li::before {
	content: counter(rns-step);
	position: absolute;
	left: 0;
	top: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rns-green-dark);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

/* ==========================================================================
   Landing page — product summary box
   ========================================================================== */

.rns-landing .rns-summary-box {
	max-width: 480px;
	margin: 16px auto 0;
	padding: 14px 16px;
	background: var(--rns-cream);
	border: 1px solid var(--rns-line);
	border-radius: 8px;
}

.rns-landing .rns-summary-box h3 {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--rns-green-dark);
	text-align: center;
}

.rns-landing .rns-summary-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--rns-muted);
	text-align: center;
}

/* ==========================================================================
   Landing page — customer reviews
   ========================================================================== */

.rns-landing .rns-reviews-section {
	max-width: 720px;
	margin: 20px auto 0;
	padding: 0 16px;
	text-align: center;
}

.rns-landing .rns-reviews-section h2 {
	color: var(--rns-ink);
	font-size: 20px;
	margin: 0 0 14px;
}

.rns-landing .rns-reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	text-align: left;
}

.rns-landing .rns-review-card {
	background: #fff;
	border: 1px solid var(--rns-line);
	border-radius: 8px;
	padding: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rns-landing .rns-review-stars {
	color: #f5a623;
	font-size: 14px;
	margin-bottom: 6px;
}

.rns-landing .rns-review-text {
	font-size: 14px;
	color: #444;
	margin: 0 0 10px;
}

.rns-landing .rns-review-author {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rns-landing .rns-review-author img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.rns-landing .rns-review-author strong {
	font-size: 13px;
	color: var(--rns-ink);
}

.rns-landing .rns-review-author small {
	color: var(--rns-muted);
}

/* ==========================================================================
   Landing page — floating order bar & WhatsApp button
   ========================================================================== */

.rns-landing .rns-floating-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: #fff;
	border-top: 1px solid var(--rns-line);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.rns-landing .rns-floating-bar-price {
	font-weight: 800;
	color: var(--rns-green-dark);
	font-size: 16px;
	white-space: nowrap;
}

.rns-landing .rns-floating-bar .btn {
	flex: 1;
	text-align: center;
	max-width: 260px;
}

.rns-landing .rns-floating-whatsapp {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 13px;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.rns-has-floating-bar {
	padding-bottom: 64px;
}

body.rns-has-order-bar .rns-floating-whatsapp {
	bottom: 76px;
}

@media (min-width: 640px) {
	.rns-landing .rns-floating-bar {
		max-width: 480px;
		left: 50%;
		transform: translateX(-50%);
		border-radius: 12px 12px 0 0;
		bottom: 0;
	}
}

/* ==========================================================================
   Landing page — bottom trust banner
   ========================================================================== */

.rns-landing .rns-bottom-banner {
	max-width: 720px;
	margin: 24px auto 0;
	padding: 20px 16px;
	text-align: center;
	background: var(--rns-cream);
	border: 1px solid var(--rns-line);
	border-radius: 10px;
}

.rns-landing .rns-bottom-banner h2 {
	color: var(--rns-green-dark);
	font-size: 22px;
	margin: 0 0 6px;
}

.rns-landing .rns-bottom-banner p {
	margin: 0 0 12px;
	color: var(--rns-muted);
}

.rns-landing .rns-trust-badges {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
}

.rns-landing .rns-trust-badges li {
	background: #fff;
	border: 1px solid var(--rns-line);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	color: var(--rns-green-dark);
	font-weight: 700;
}

/* ==========================================================================
   Landing page — order/checkout section
   ========================================================================== */

.rns-landing .checkout-wrap {
	background: var(--rns-green);
	padding: 24px 16px 30px;
	margin: 28px calc((920px - 100vw) / 2) 0;
}

.rns-landing .checkout-inner {
	max-width: 720px;
	margin: auto;
}

.rns-landing .checkout-title {
	background: var(--rns-red);
	color: #fff;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	border-radius: 6px;
	padding: 4px 10px;
	margin: 0 0 8px;
}

.rns-landing .checkout {
	background: #fff;
	border: 1px solid #d9e3d2;
	border-radius: 7px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rns-landing .checkout-top {
	padding: 14px 16px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.rns-landing .cart-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.rns-landing .cart-row strong {
	font-weight: 700;
}

.rns-landing .cart-row .rns-qty {
	width: 56px;
	padding: 4px;
	border: 1px solid var(--rns-line);
	border-radius: 4px;
	text-align: center;
	font: inherit;
	font-size: 13px;
}

.rns-landing .checkout-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 18px 16px;
}

.rns-landing .checkout h3 {
	font-size: 14px;
	color: #6a9d45;
	font-weight: 500;
	margin: 0 0 10px;
	text-align: left;
}

.rns-landing label {
	display: block;
	font-size: 12px;
	margin: 9px 0 4px;
	color: #5c665d;
}

.rns-landing label .required {
	color: var(--rns-red);
}

.rns-landing input,
.rns-landing textarea,
.rns-landing select {
	width: 100%;
	border: 1px solid #dce2da;
	border-radius: 4px;
	padding: 11px;
	font: inherit;
	font-size: 13px;
	background: #fff;
}

.rns-landing textarea {
	min-height: 80px;
	resize: vertical;
}

.rns-landing .order-summary {
	border: 1px solid #e6eae3;
	border-radius: 4px;
	padding: 12px;
	font-size: 13px;
}

.rns-landing .summary-line {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid #edf0eb;
}

.rns-landing .summary-line:last-child {
	border: 0;
	font-weight: bold;
}

.rns-landing .shipping {
	background: #f5f7f3;
	padding: 10px;
	margin-top: 12px;
	font-size: 13px;
}

.rns-landing .notice {
	background: #69b221;
	color: #fff;
	padding: 12px;
	border-radius: 4px;
	margin: 12px 0;
	font-size: 13px;
}

.rns-landing .place-order {
	display: block;
	width: 100%;
	background: #65af1e;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 14px;
	font-weight: bold;
	font-size: 15px;
	cursor: pointer;
}

.rns-landing .place-order:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rns-landing .rns-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
}

.rns-landing .rns-form-message {
	margin-top: 10px;
	padding: 10px;
	border-radius: 4px;
	font-weight: 700;
	text-align: center;
	display: none;
}

.rns-landing .rns-form-message.is-error {
	display: block;
	background: #fdecea;
	color: var(--rns-red);
}

.rns-landing .rns-form-message.is-success {
	display: block;
	background: #e8f5e9;
	color: var(--rns-green-dark);
}

.rns-landing .footer {
	text-align: center;
	font-size: 12px;
	color: #778071;
	padding: 22px;
}

@media (max-width: 620px) {
	.rns-landing main {
		padding: 0 12px 30px;
	}

	.rns-landing .checkout-wrap {
		margin-left: -12px;
		margin-right: -12px;
		padding: 18px 12px;
	}

	.rns-landing .checkout-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.rns-landing .section-title,
	.rns-landing .rns-content h2 {
		font-size: 18px;
	}

	.rns-landing .price {
		font-size: 19px;
	}
}
