/*
 * ==========================================================
 * Creemly Homepage
 * ==========================================================
 */


/* ----------------------------------------------------------
   Base
   ---------------------------------------------------------- */

.creemly-homepage {
	--creemly-primary: #ff6b35;
	--creemly-primary-dark: #e85a27;
	--creemly-secondary: #1f2937;
	--creemly-text: #374151;
	--creemly-muted: #6b7280;
	--creemly-light: #f8fafc;
	--creemly-white: #ffffff;
	--creemly-border: #e5e7eb;
	--creemly-radius: 18px;
	--creemly-radius-lg: 28px;
	--creemly-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
	--creemly-container: 1240px;

	color: var(--creemly-text);
	background: var(--creemly-white);
}


/* ----------------------------------------------------------
   Container
   ---------------------------------------------------------- */

.creemly-homepage .container {
	width: min(
		calc(100% - 40px),
		var(--creemly-container)
	);

	margin-inline: auto;
}


/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.home-hero {
	position: relative;
	overflow: hidden;
	padding: 90px 0 100px;
	background:
		radial-gradient(
			circle at 85% 20%,
			rgba(255, 107, 53, 0.12),
			transparent 35%
		),
		linear-gradient(
			135deg,
			#fff7f2 0%,
			#ffffff 60%
		);
}

.home-hero::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	right: -180px;
	bottom: -220px;
	background: rgba(255, 107, 53, 0.06);
	pointer-events: none;
}

.home-hero-content {
	position: relative;
	z-index: 1;

	display: grid;
	grid-template-columns:
		minmax(0, 1.05fr)
		minmax(400px, 0.95fr);

	gap: 70px;
	align-items: center;
}


/* ----------------------------------------------------------
   Hero Text
   ---------------------------------------------------------- */

.home-hero-text {
	max-width: 690px;
}

.home-hero-eyebrow,
.section-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	margin-bottom: 18px;

	color: var(--creemly-primary);

	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.home-hero-eyebrow::before,
.section-eyebrow::before {
	content: "";
	display: inline-block;

	width: 28px;
	height: 2px;

	background: currentColor;
	border-radius: 10px;
}

.home-hero-title {
	max-width: 720px;
	margin: 0 0 24px;

	color: var(--creemly-secondary);

	font-size: clamp(44px, 5vw, 72px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.home-hero-description {
	max-width: 610px;
	margin: 0 0 34px;

	color: var(--creemly-muted);

	font-size: 18px;
	line-height: 1.75;
}


/* ----------------------------------------------------------
   Hero Image
   ---------------------------------------------------------- */

.home-hero-image {
	position: relative;
}

.hero-image-placeholder {
	position: relative;

	display: flex;
	align-items: flex-end;
	justify-content: center;

	min-height: 500px;

	padding: 35px;

	overflow: hidden;

	background:
		linear-gradient(
			145deg,
			#fed7aa 0%,
			#fb923c 45%,
			#ea580c 100%
		);

	border-radius: 34px;

	box-shadow:
		0 30px 70px rgba(234, 88, 12, 0.20);
}

.hero-image-placeholder::before {
	content: "";

	position: absolute;

	width: 330px;
	height: 330px;

	top: 55px;
	left: 50%;

	transform: translateX(-50%);

	border-radius: 50%;

	background:
		radial-gradient(
			circle,
			rgba(255, 255, 255, 0.9) 0 38%,
			rgba(255, 255, 255, 0.35) 39% 55%,
			transparent 56%
		);

	filter: blur(1px);
}

.hero-image-placeholder::after {
	content: "🍱";

	position: absolute;

	top: 50%;
	left: 50%;

	transform:
		translate(-50%, -55%)
		rotate(-4deg);

	font-size: 150px;

	filter:
		drop-shadow(
			0 20px 20px rgba(0, 0, 0, 0.15)
		);
}

.hero-image-placeholder span {
	position: relative;
	z-index: 2;

	display: inline-flex;

	padding: 13px 18px;

	color: var(--creemly-secondary);
	background: rgba(255, 255, 255, 0.90);

	border-radius: 12px;

	font-size: 14px;
	font-weight: 700;

	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.10);
}


/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */

.home-categories,
.home-vendors,
.home-products,
.home-blog {
	padding: 100px 0;
}

.home-categories {
	background: var(--creemly-white);
}

.home-vendors,
.home-blog {
	background: var(--creemly-light);
}

.home-products {
	background: var(--creemly-white);
}


/* ----------------------------------------------------------
   Section Heading
   ---------------------------------------------------------- */

.section-heading {
	max-width: 720px;
	margin-bottom: 46px;
}

.section-heading h2 {
	margin: 0 0 14px;

	color: var(--creemly-secondary);

	font-size: clamp(34px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.section-heading p {
	max-width: 650px;
	margin: 0;

	color: var(--creemly-muted);

	font-size: 17px;
	line-height: 1.7;
}


/* ----------------------------------------------------------
   Category Grid
   ---------------------------------------------------------- */

.home-category-grid {
	display: grid;

	grid-template-columns:
		repeat(
			auto-fit,
			minmax(160px, 1fr)
		);

	gap: 18px;
}

.home-category-grid > *:not(.category-loading) {
	min-width: 0;
}


/* ----------------------------------------------------------
   Category Cards
   ---------------------------------------------------------- */

.category-card {
	position: relative;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-height: 180px;

	padding: 25px 18px;

	text-align: center;

	background: var(--creemly-white);
	border: 1px solid var(--creemly-border);
	border-radius: var(--creemly-radius);

	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.category-card:hover {
	transform: translateY(-6px);

	border-color: rgba(255, 107, 53, 0.35);

	box-shadow: var(--creemly-shadow);
}

.category-card-image {
	width: 76px;
	height: 76px;

	margin-bottom: 16px;

	object-fit: cover;

	border-radius: 50%;
}

.category-card-title {
	margin: 0;

	color: var(--creemly-secondary);

	font-size: 16px;
	font-weight: 750;
}


/* ----------------------------------------------------------
   Vendor Grid
   ---------------------------------------------------------- */

.home-vendor-grid {
	display: grid;

	grid-template-columns:
		repeat(
			3,
			minmax(0, 1fr)
		);

	gap: 24px;
}


/* ----------------------------------------------------------
   Vendor Cards
   ---------------------------------------------------------- */

.vendor-card {
	overflow: hidden;

	background: var(--creemly-white);

	border: 1px solid var(--creemly-border);
	border-radius: var(--creemly-radius-lg);

	box-shadow:
		0 5px 20px rgba(15, 23, 42, 0.04);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.vendor-card:hover {
	transform: translateY(-6px);

	box-shadow: var(--creemly-shadow);
}

.vendor-card-image {
	display: block;

	width: 100%;
	height: 230px;

	object-fit: cover;
}

.vendor-card-content {
	padding: 22px;
}

.vendor-card-title {
	margin: 0 0 8px;

	color: var(--creemly-secondary);

	font-size: 20px;
	font-weight: 750;
}

.vendor-card-description {
	margin: 0;

	color: var(--creemly-muted);

	font-size: 14px;
	line-height: 1.65;
}


/* ----------------------------------------------------------
   Product Grid
   ---------------------------------------------------------- */

.home-product-grid {
	display: grid;

	grid-template-columns:
		repeat(
			4,
			minmax(0, 1fr)
		);

	gap: 24px;
}




/* =========================================
   CREEMLY — PREMIUM FOOD PRODUCT CARDS
========================================= */

.home-products {
    padding: 80px 0;
    background: #fffaf3;
}

.home-products .section-heading {
    max-width: 680px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-products .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 15px;
    border: 1px solid #dce9d5;
    border-radius: 50px;
    background: #edf5e8;
    color: #28643d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.home-products .section-eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43a65c;
    content: "";
}

.home-products .section-heading h2 {
    margin: 0 0 14px;
    color: #183c2a;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.4px;
}

.home-products .section-heading p {
    max-width: 540px;
    margin: 0 auto;
    color: #77756d;
    font-size: 16px;
    line-height: 1.8;
}

/* Product grid */

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Product card */

.home-product-grid .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eee8dd;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(39, 54, 35, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.home-product-grid .product-card:hover {
    transform: translateY(-7px);
    border-color: #d3e4d1;
    box-shadow: 0 18px 40px rgba(35, 73, 43, 0.12);
}

/* Product image */

.home-product-grid .product-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 0.88;
    background: #f1ede4;
}

.home-product-grid .product-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.home-product-grid .product-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(.2, .7, .2, 1);
}

.home-product-grid .product-card:hover .product-card-image {
    transform: scale(1.07);
}

/* Discount badge */

.home-product-grid .product-card .custom-on-sale {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: #d94737;
    box-shadow: 0 4px 12px rgba(160, 42, 32, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1;
}

/* Card content */

.home-product-grid .product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 19px;
}

.home-product-grid .product-card-category {
    display: inline-block;
    color: #55815d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-product-grid .product-card-title {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    margin: 0;
    color: #203b2a;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-grid .product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-product-grid .product-card-title a:hover {
    color: #43814d;
}

/* Ratings */

.home-product-grid .product-card-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #986a12;
    font-size: 13px;
    font-weight: 750;
}

.home-product-grid .product-card-rating-count,
.home-product-grid .product-card-no-rating {
    color: #939087;
    font-size: 12px;
    font-weight: 400;
}

/* Price */

.home-product-grid .product-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
    color: #1d492e;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.4;
}

.home-product-grid .product-card-price del {
    color: #aaa59b;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
}

.home-product-grid .product-card-price ins {
    color: #1d492e;
    text-decoration: none;
}

/* Add to cart */

.home-product-grid .product-card-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 5px;
}

.home-product-grid .product-card-actions .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #245b36;
    border-radius: 10px;
    background: #245b36;
    box-shadow: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-product-grid .product-card-actions .button:hover {
    transform: translateY(-1px);
    border-color: #174528;
    background: #174528;
    color: #ffffff;
}

.home-product-grid .product-card-actions .button:focus-visible {
    outline: 3px solid #b7d8b9;
    outline-offset: 3px;
}

.home-product-grid .product-card-unavailable {
    display: block;
    padding: 12px;
    border-radius: 10px;
    background: #f3f0eb;
    color: #77736a;
    font-size: 13px;
    text-align: center;
}

/* Loading and empty states */

.home-product-grid .product-loading,
.home-product-grid .creemly-empty-state {
    grid-column: 1 / -1;
    padding: 36px 20px;
    border: 1px dashed #d9ddcf;
    border-radius: 16px;
    color: #77756d;
    text-align: center;
}

/* View all button */

.home-products .section-action {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.home-products .section-action .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 26px;
    border: 1px solid #245b36;
    border-radius: 10px;
    background: transparent;
    color: #245b36;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-products .section-action .button:hover {
    background: #245b36;
    color: #ffffff;
}

/* Tablet */

@media (max-width: 1024px) {
    .home-products {
        padding: 64px 0;
    }

    .home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .home-product-grid .product-card-content {
        padding: 16px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .home-products {
        padding: 48px 0;
    }

    .home-products .section-heading {
        margin-bottom: 25px;
    }

    .home-products .section-heading h2 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .home-products .section-heading p {
        font-size: 14px;
        line-height: 1.7;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-product-grid .product-card {
        border-radius: 14px;
    }

    .home-product-grid .product-card-media {
        aspect-ratio: 1 / 0.9;
    }

    .home-product-grid .product-card-content {
        gap: 8px;
        padding: 12px;
    }

    .home-product-grid .product-card-category {
        font-size: 9px;
        letter-spacing: 0.6px;
    }

    .home-product-grid .product-card-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .home-product-grid .product-card-rating {
        gap: 4px;
        font-size: 11px;
    }

    .home-product-grid .product-card-rating-count,
    .home-product-grid .product-card-no-rating {
        font-size: 10px;
    }

    .home-product-grid .product-card-price {
        gap: 5px;
        font-size: 17px;
    }

    .home-product-grid .product-card-price del {
        font-size: 11px;
    }

    .home-product-grid .product-card .custom-on-sale {
        top: 8px;
        left: 8px;
        min-height: 27px;
        padding: 6px 8px;
        border-radius: 6px;
        font-size: 10px;
    }

    .home-product-grid .product-card-actions .button {
        min-height: 40px;
        padding: 10px 7px;
        border-radius: 8px;
        font-size: 11px;
    }

    .home-products .section-action {
        margin-top: 28px;
    }
}



/* Creemly — WooCommerce View Cart button */
.home-product-grid .product-card-actions a.added_to_cart.wc-forward {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    margin: 8px 0 0;
    padding: 12px 15px;
    border: 1px solid #dce9dd;
    border-radius: 10px;
    background: #edf5e8;
    color: #245b36 !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.home-product-grid .product-card-actions a.added_to_cart.wc-forward:hover {
    border-color: #245b36;
    background: #245b36;
    color: #fff !important;
}

.home-product-grid .product-card-actions a.added_to_cart.wc-forward:focus-visible {
    outline: 3px solid #b7d8b9;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .home-product-grid .product-card-actions a.added_to_cart.wc-forward {
        min-height: 40px;
        padding: 10px 7px;
        font-size: 11px;
    }
}


/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .home-product-grid .product-card,
    .home-product-grid .product-card-image,
    .home-product-grid .product-card-actions .button {
        transition: none;
    }

    .home-product-grid .product-card:hover,
    .home-product-grid .product-card-actions .button:hover {
        transform: none;
    }
}


/* ----------------------------------------------------------
   Section Action
   ---------------------------------------------------------- */

.section-action {
	display: flex;
	justify-content: center;

	margin-top: 44px;
}


/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.creemly-homepage .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 52px;

	padding: 0 25px;

	border-radius: 12px;

	font-size: 15px;
	font-weight: 750;

	text-decoration: none;

	transition:
		transform 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.creemly-homepage .button-primary {
	color: var(--creemly-white);
	background: var(--creemly-primary);

	box-shadow:
		0 8px 20px rgba(255, 107, 53, 0.18);
}

.creemly-homepage .button-primary:hover {
	color: var(--creemly-white);
	background: var(--creemly-primary-dark);

	transform: translateY(-2px);

	box-shadow:
		0 12px 25px rgba(255, 107, 53, 0.24);
}


/* ----------------------------------------------------------
   Vendor CTA
   ---------------------------------------------------------- */

.home-vendor-cta {
	padding: 100px 0;

	background:
		linear-gradient(
			135deg,
			#111827 0%,
			#1f2937 100%
		);
}

.vendor-cta-inner {
	position: relative;

	overflow: hidden;

	min-height: 380px;

	display: flex;
	align-items: center;

	padding: 70px;

	background:
		radial-gradient(
			circle at 90% 10%,
			rgba(255, 107, 53, 0.35),
			transparent 35%
		);

	border-radius: var(--creemly-radius-lg);
}

.vendor-cta-inner::after {
	content: "🍱";

	position: absolute;

	right: 8%;
	bottom: -20px;

	font-size: 180px;

	opacity: 0.12;

	transform: rotate(-8deg);
}

.vendor-cta-content {
	position: relative;
	z-index: 1;

	max-width: 680px;
}

.vendor-cta-content .section-eyebrow {
	color: #fb923c;
}

.vendor-cta-content h2 {
	margin: 0 0 18px;

	color: var(--creemly-white);

	font-size: clamp(34px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.vendor-cta-content p {
	max-width: 600px;

	margin: 0 0 30px;

	color: #d1d5db;

	font-size: 17px;
	line-height: 1.75;
}


/* ----------------------------------------------------------
   Blog Grid
   ---------------------------------------------------------- */

.home-blog-grid {
	display: grid;

	grid-template-columns:
		repeat(
			3,
			minmax(0, 1fr)
		);

	gap: 24px;
}

.blog-card {
	overflow: hidden;

	background: var(--creemly-white);

	border: 1px solid var(--creemly-border);
	border-radius: var(--creemly-radius-lg);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.blog-card:hover {
	transform: translateY(-5px);

	box-shadow: var(--creemly-shadow);
}

.blog-card-image {
	display: block;

	width: 100%;
	height: 220px;

	object-fit: cover;
}

.blog-card-content {
	padding: 22px;
}

.blog-card-title {
	margin: 0 0 10px;

	color: var(--creemly-secondary);

	font-size: 20px;
	font-weight: 750;
	line-height: 1.35;
}

.blog-card-excerpt {
	margin: 0;

	color: var(--creemly-muted);

	font-size: 14px;
	line-height: 1.7;
}


/* ----------------------------------------------------------
   Loading States
   ---------------------------------------------------------- */

.category-loading,
.vendor-loading,
.product-loading,
.blog-loading {
	grid-column: 1 / -1;

	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 180px;

	padding: 30px;

	color: var(--creemly-muted);

	background: var(--creemly-light);

	border: 1px dashed var(--creemly-border);
	border-radius: var(--creemly-radius);

	font-size: 14px;
	font-weight: 600;
}

.category-loading::before,
.vendor-loading::before,
.product-loading::before,
.blog-loading::before {
	content: "";

	width: 20px;
	height: 20px;

	margin-right: 12px;

	border: 2px solid #e5e7eb;
	border-top-color: var(--creemly-primary);
	border-radius: 50%;

	animation: creemly-spin 0.75s linear infinite;
}

@keyframes creemly-spin {
	to {
		transform: rotate(360deg);
	}
}


/* ----------------------------------------------------------
   Empty State
   ---------------------------------------------------------- */

.creemly-empty-state {
	grid-column: 1 / -1;

	padding: 60px 25px;

	text-align: center;

	color: var(--creemly-muted);

	background: var(--creemly-light);

	border-radius: var(--creemly-radius);
}

.creemly-empty-state h3 {
	margin: 0 0 8px;

	color: var(--creemly-secondary);

	font-size: 20px;
}

.creemly-empty-state p {
	margin: 0;

	font-size: 14px;
}


/* ----------------------------------------------------------
   Accessibility
   ---------------------------------------------------------- */

.creemly-homepage a:focus-visible,
.creemly-homepage button:focus-visible,
.creemly-homepage input:focus-visible {
	outline: 3px solid rgba(255, 107, 53, 0.35);
	outline-offset: 3px;
}


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 1100px) {

	.home-hero-content {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(340px, 0.8fr);

		gap: 45px;
	}

	.home-hero-title {
		font-size: 54px;
	}

	.home-product-grid {
		grid-template-columns:
			repeat(3, minmax(0, 1fr));
	}

}


/* ----------------------------------------------------------
   Tablet / Small Laptop
   ---------------------------------------------------------- */

@media (max-width: 900px) {

	.home-hero {
		padding: 70px 0 80px;
	}

	.home-hero-content {
		grid-template-columns: 1fr;
	}

	.home-hero-text {
		max-width: 760px;
	}

	.home-hero-image {
		max-width: 650px;
		margin-inline: auto;
		width: 100%;
	}

	.hero-image-placeholder {
		min-height: 400px;
	}

	.home-vendor-grid,
	.home-blog-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.home-product-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.vendor-cta-inner {
		padding: 55px;
	}

}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 640px) {

	.creemly-homepage .container {
		width: min(
			calc(100% - 28px),
			var(--creemly-container)
		);
	}

	.home-hero {
		padding: 55px 0 65px;
	}

	.home-hero-title {
		font-size: 42px;
		line-height: 1.08;
	}

	.home-hero-description {
		font-size: 16px;
		line-height: 1.65;
	}

	.creemly-hero-search-form {
		padding: 6px;
	}

	.creemly-hero-search-form input[type="search"] {
		height: 52px;
		padding-inline: 13px;

		font-size: 14px;
	}

	.hero-search-submit {
		height: 52px;

		padding-inline: 18px;

		font-size: 14px;
	}

	.hero-image-placeholder {
		min-height: 330px;

		border-radius: 24px;
	}

	.hero-image-placeholder::before {
		width: 230px;
		height: 230px;
	}

	.hero-image-placeholder::after {
		font-size: 100px;
	}

	.home-categories,
	.home-vendors,
	.home-products,
	.home-blog,
	.home-vendor-cta {
		padding: 70px 0;
	}

	.section-heading {
		margin-bottom: 32px;
	}

	.section-heading h2 {
		font-size: 36px;
	}

	.section-heading p {
		font-size: 15px;
	}

	.home-category-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap: 12px;
	}

	.category-card {
		min-height: 150px;
		padding: 18px 12px;
	}

	.category-card-image {
		width: 62px;
		height: 62px;
	}

	.home-vendor-grid,
	.home-product-grid,
	.home-blog-grid {
		grid-template-columns: 1fr;
	}

	.vendor-cta-inner {
		min-height: auto;

		padding: 40px 25px;

		border-radius: 22px;
	}

	.vendor-cta-content h2 {
		font-size: 36px;
	}

	.vendor-cta-content p {
		font-size: 15px;
	}

	.vendor-cta-inner::after {
		font-size: 120px;
		right: 0;
		bottom: 0;
		opacity: 0.07;
	}

	.section-action {
		margin-top: 32px;
	}

	.creemly-homepage .button {
		width: 100%;
	}

}


/* ----------------------------------------------------------
   Very Small Devices
   ---------------------------------------------------------- */

@media (max-width: 400px) {

	.home-hero-title {
		font-size: 36px;
	}

	.home-category-grid {
		grid-template-columns: 1fr;
	}

	.creemly-hero-search-form {
		flex-direction: column;
		align-items: stretch;
	}

	.creemly-hero-search-form input[type="search"] {
		width: 100%;
	}

	.hero-search-submit {
		width: 100%;
	}

}
/* ----------------------------------------------------------
   AJAX-generated placeholders and empty states
   ---------------------------------------------------------- */

.category-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--creemly-white);
	background: linear-gradient(135deg, var(--creemly-primary), var(--creemly-primary-dark));
	font-size: 24px;
	font-weight: 800;
}

.vendor-card-image-placeholder,
.blog-card-image-placeholder {
	background:
		linear-gradient(135deg, #fff1e8, #fed7aa);
}

.creemly-empty-state {
	grid-column: 1 / -1;
	padding: 50px 25px;
	text-align: center;
	background: var(--creemly-light);
	border: 1px dashed var(--creemly-border);
	border-radius: var(--creemly-radius);
}

.creemly-empty-state h3 {
	margin: 0 0 8px;
	font-size: 24px;
}

.creemly-empty-state p {
	margin: 0;
	color: var(--creemly-muted);
}
