/**
 * Stiva YGO Native Front Page Styles
 *
 * Mobile-First responsive CSS matching Stiva/Otaku aesthetics.
 */

.stiva-home-page {
	width: 100%;
	overflow-x: hidden;
	background-color: #ffffff;
}

.stiva-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   Hero Fallback Banner (when Slider Revolution is inactive)
   ========================================================================== */
.stiva-hero-fallback-banner {
	background: radial-gradient(circle at 70% 30%, #2b0000 0%, #121212 70%);
	color: #ffffff;
	padding: 80px 0;
	position: relative;
}

.stiva-hero-content {
	max-width: 650px;
}

.stiva-hero-badge {
	display: inline-block;
	background: rgba(220, 18, 18, 0.2);
	color: #ff4d4d;
	border: 1px solid rgba(220, 18, 18, 0.4);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 20px;
}

.stiva-hero-title {
	font-size: 38px;
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
	margin: 0 0 16px;
}

.stiva-hero-sub {
	font-size: 16px;
	line-height: 1.6;
	color: #cccccc;
	margin: 0 0 30px;
}

.stiva-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

/* Buttons */
.stiva-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.25s ease;
	cursor: pointer;
}

.stiva-btn-primary {
	background-color: #dc1212;
	color: #ffffff;
	border: 2px solid #dc1212;
}

.stiva-btn-primary:hover {
	background-color: #b50e0e;
	border-color: #b50e0e;
	color: #ffffff;
}

.stiva-btn-secondary {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.4);
}

.stiva-btn-secondary:hover {
	background-color: #ffffff;
	color: #121212;
	border-color: #ffffff;
}

.stiva-btn-outline {
	background: transparent;
	color: #121212;
	border: 2px solid #121212;
	padding: 12px 36px;
}

.stiva-btn-outline:hover {
	background: #dc1212;
	border-color: #dc1212;
	color: #ffffff;
}

/* ==========================================================================
   2. Features Section (Mobile-First)
   ========================================================================== */
.stiva-features-section {
	padding: 40px 0;
	border-bottom: 1px solid #f0f0f0;
}

.stiva-features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.stiva-feature-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px;
	background: #fafafa;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s;
}

.stiva-feature-link:hover {
	background: #f0f2f5;
}

.stiva-feature-icon-wrap {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #dc1212;
	flex-shrink: 0;
}

.stiva-feature-title {
	font-size: 16px;
	font-weight: 700;
	color: #1f242e;
	margin: 0 0 4px;
}

.stiva-feature-desc {
	font-size: 13px;
	color: #777777;
	margin: 0;
	text-transform: capitalize;
}

/* ==========================================================================
   3. Products Section (Popular & New Arrivals)
   ========================================================================== */
.stiva-products-section {
	padding: 60px 0;
}

.stiva-section-header {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 35px;
}

.stiva-section-subtitle {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #dc1212;
	letter-spacing: 1px;
}

.stiva-section-title {
	font-size: 32px;
	font-weight: 800;
	color: #1f242e;
	margin: 0;
}

.stiva-link-arrow {
	font-size: 14px;
	font-weight: 700;
	color: #dc1212;
	text-decoration: none;
}

.stiva-products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.stiva-text-center {
	text-align: center;
	align-items: center;
}

.stiva-section-footer-btn {
	text-align: center;
	margin-top: 40px;
}

/* ==========================================================================
   4. Categories Cards Section
   ========================================================================== */
.stiva-categories-section {
	padding: 50px 0;
	background: #f8f9fa;
}

.stiva-categories-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.stiva-category-card {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
}

.stiva-category-image {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.stiva-category-overlay-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.stiva-category-info {
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.stiva-category-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: #1f242e;
}

.stiva-category-action-link {
	font-size: 13px;
	font-weight: 700;
	color: #dc1212;
	text-decoration: none;
}

/* ==========================================================================
   6. Brand Graphic Section
   ========================================================================== */
.stiva-brand-badge-section {
	padding: 60px 0;
	text-align: center;
	background: #ffffff;
}

.stiva-brand-badge-img {
	max-width: 480px;
	width: 80%;
	height: auto;
	margin: 0 auto;
	display: block;
	opacity: 0.9;
}

/* ==========================================================================
   Tablet & Desktop Responsive Breakpoints
   ========================================================================== */
@media (min-width: 768px) {
	.stiva-features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stiva-categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.stiva-section-header {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
	}

	.stiva-products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.stiva-features-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.stiva-hero-title {
		font-size: 52px;
	}
}

/* ==========================================================================
   Upgraded Duelist Hero & Brand Styling
   ========================================================================== */
.stiva-hero-duelist-banner {
	background: radial-gradient(circle at 80% 20%, rgba(220, 18, 18, 0.28) 0%, transparent 50%),
	            linear-gradient(135deg, #0d0f14 0%, #191c24 55%, #231116 100%);
	padding: 64px 20px;
	color: #ffffff;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-bottom: 3px solid #dc1212;
}

.stiva-hero-duelist-banner .stiva-hero-badge {
	display: inline-block;
	background: rgba(220, 18, 18, 0.18);
	border: 1px solid rgba(220, 18, 18, 0.55);
	color: #ff4d4d;
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 14px;
	letter-spacing: 2px;
	padding: 5px 14px;
	border-radius: 20px;
	margin-bottom: 16px;
}

.stiva-hero-duelist-banner .stiva-hero-title {
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 46px;
	line-height: 1;
	letter-spacing: 2px;
	color: #ffffff;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.stiva-hero-duelist-banner .stiva-hero-sub {
	font-size: 16px;
	color: #b8bec9;
	max-width: 580px;
	margin: 0 auto 28px;
	line-height: 1.5;
}

.stiva-hero-duelist-banner .stiva-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.stiva-hero-duelist-banner .stiva-btn {
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 18px;
	letter-spacing: 1.2px;
	padding: 12px 28px;
	border-radius: 4px;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.2s ease;
}

.stiva-hero-duelist-banner .stiva-btn-primary {
	background: #dc1212;
	color: #ffffff;
	border: 2px solid #dc1212;
}

.stiva-hero-duelist-banner .stiva-btn-primary:hover {
	background: #b50e0e;
	border-color: #b50e0e;
}

.stiva-hero-duelist-banner .stiva-btn-secondary {
	background: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.45);
}

.stiva-hero-duelist-banner .stiva-btn-secondary:hover {
	border-color: #dc1212;
	color: #ff4d4d;
}

@media (min-width: 768px) {
	.stiva-hero-duelist-banner {
		padding: 96px 20px;
	}
	.stiva-hero-duelist-banner .stiva-hero-title {
		font-size: 68px;
	}
}

/* ==========================================================================
   Anime / Yu-Gi-Oh! Duel Arena Hero & Portal Cards
   ========================================================================== */
.stiva-hero-duelist-banner {
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	text-align: left;
	padding: 64px 0 72px;
	border-bottom: 3px solid #dc1212;
}

.stiva-hero-duelist-banner .stiva-hero-left {
	max-width: 620px;
}

.stiva-hero-duelist-banner .stiva-hero-highlight {
	color: #f5b800;
	text-shadow: 0 0 24px rgba(245, 184, 0, 0.45);
}

.stiva-hero-duelist-banner .stiva-hero-buttons {
	justify-content: flex-start;
}

.stiva-btn-angled {
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	padding: 13px 32px !important;
}

.stiva-btn-gold {
	background: #f5b800 !important;
	color: #111318 !important;
	border: 2px solid #f5b800 !important;
	font-weight: 700 !important;
}

.stiva-btn-gold:hover {
	background: #ffd038 !important;
	border-color: #ffd038 !important;
}

/* Duelist Quick Portals Strip */
.stiva-duelist-portals {
	background: #11131a;
	padding: 28px 0 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stiva-portals-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media (min-width: 992px) {
	.stiva-portals-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 18px;
	}
}

.stiva-portal-card {
	display: block;
	background: linear-gradient(145deg, #1b1e29 0%, #141720 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 3px solid #dc1212;
	border-radius: 6px;
	padding: 18px 16px;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stiva-portal-card.stiva-portal-gold {
	border-left-color: #f5b800;
}

.stiva-portal-card:hover {
	transform: translateY(-4px);
	border-color: #dc1212;
	box-shadow: 0 10px 24px rgba(220, 18, 18, 0.22);
}

.stiva-portal-card.stiva-portal-gold:hover {
	border-color: #f5b800;
	box-shadow: 0 10px 24px rgba(245, 184, 0, 0.22);
}

.stiva-portal-tag {
	display: inline-block;
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 12px;
	letter-spacing: 1.5px;
	color: #ff4d4d;
	margin-bottom: 4px;
}

.stiva-portal-gold .stiva-portal-tag {
	color: #f5b800;
}

.stiva-portal-card h3 {
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 22px;
	letter-spacing: 1px;
	color: #ffffff;
	margin: 0 0 6px;
	line-height: 1.1;
}

.stiva-portal-card p {
	font-size: 13px;
	color: #9ba3b4;
	margin: 0;
	line-height: 1.4;
}

/* ==========================================================================
   Remove Legacy Otaku Padding & Gaps on Homepage (True Full-Bleed Edge-to-Edge)
   ========================================================================== */
body.home .page_content_wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
}

body.home .content_wrap,
body.home .content_wrap > .content {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.stiva-home-page .stiva-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.stiva-product-card,
.stiva-cat-card {
	position: relative !important;
}

.stiva-portal-sdb-header {
	margin: 2px 0 8px;
}

.stiva-portal-sdb-logo {
	height: 30px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	display: block;
}

/* ==========================================================================
   Clean Editorial 2-Slide Hero Slider (Original Stiva Store Aesthetic)
   ========================================================================== */
.stiva-hero-slider {
	position: relative;
	width: 100%;
	height: 360px;
	overflow: hidden;
	background: #11131a;
}

@media (min-width: 768px) {
	.stiva-hero-slider {
		height: 520px;
	}
}

.stiva-hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.stiva-hero-slide.stiva-is-active {
	opacity: 1;
	pointer-events: auto;
}

.stiva-hero-slide-inner {
	max-width: 820px;
}

.stiva-hero-eyebrow {
	display: block;
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 16px;
	letter-spacing: 3px;
	color: #ffffff;
	margin-bottom: 10px;
	text-transform: uppercase;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.stiva-hero-heading {
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 40px;
	line-height: 1.02;
	letter-spacing: 2px;
	color: #ffffff;
	margin: 0 0 22px;
	text-transform: uppercase;
	text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
	.stiva-hero-eyebrow {
		font-size: 20px;
	}
	.stiva-hero-heading {
		font-size: 68px;
	}
}

.stiva-hero-cta {
	display: inline-block;
	background: #dc1212;
	color: #ffffff !important;
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 18px;
	letter-spacing: 1.5px;
	padding: 11px 30px;
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 2px;
	transition: background 0.2s ease;
}

.stiva-hero-cta:hover {
	background: #b50e0e;
}

.stiva-hero-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}

.stiva-hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: all 0.2s ease;
}

.stiva-hero-dot.stiva-is-active {
	background: #ffffff;
	transform: scale(1.2);
}

/* ==========================================================================
   Clean Editorial Portal Strip (Matches Stiva Store Brand — Zero Dark AI Look)
   ========================================================================== */
.stiva-duelist-portals {
	background: #f2f4f8 !important;
	padding: 28px 0 !important;
	border-top: none !important;
	border-bottom: 1px solid #e2e5ec !important;
}

.stiva-portal-card,
.stiva-portal-card.stiva-portal-gold {
	background: #ffffff !important;
	border: 1px solid #e2e5ec !important;
	border-left: 1px solid #e2e5ec !important;
	border-radius: 4px !important;
	padding: 18px 16px !important;
	box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04) !important;
	transition: border-color 0.15s ease, transform 0.15s ease !important;
}

.stiva-portal-card:hover,
.stiva-portal-card.stiva-portal-gold:hover {
	transform: translateY(-2px) !important;
	border-color: #dc1212 !important;
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08) !important;
}

.stiva-portal-tag,
.stiva-portal-gold .stiva-portal-tag {
	color: #dc1212 !important;
	font-size: 12px !important;
	letter-spacing: 1.2px !important;
}

.stiva-portal-card h3 {
	color: #16181d !important;
	font-size: 22px !important;
}

.stiva-portal-card p {
	color: #667085 !important;
	font-size: 13px !important;
}

/* Clean Editorial Homepage SEO Block */
.stiva-home-seo-block {
	max-width: 860px;
	margin: 24px auto 0;
	padding: 24px 20px;
	text-align: center;
	border-top: 1px solid #e2e5ec;
}

.stiva-home-seo-block h2 {
	font-family: "Bebas Neue", cursive, sans-serif;
	font-size: 26px;
	letter-spacing: 1px;
	color: #16181d;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.stiva-home-seo-block p {
	font-size: 14px;
	line-height: 1.65;
	color: #667085;
	margin: 0;
}

/* ==========================================================================
   Homepage 4-Column Product Grid Fix (Zero Empty 1st Slot, Zero Bullets)
   ========================================================================== */
.stiva-products-section ul.stiva-products-grid,
.stiva-products-section .stiva-products-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

@media (min-width: 960px) {
	.stiva-products-section ul.stiva-products-grid,
	.stiva-products-section .stiva-products-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 22px !important;
	}
}

.stiva-products-section ul.stiva-products-grid::before,
.stiva-products-section ul.stiva-products-grid::after,
.stiva-products-section .stiva-products-grid::before,
.stiva-products-section .stiva-products-grid::after {
	display: none !important;
	content: none !important;
}

.stiva-products-section ul.stiva-products-grid > li.product {
	position: relative !important;
	list-style: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 14px !important;
	float: none !important;
	clear: none !important;
	background: #ffffff !important;
	border: 1px solid rgba(24, 24, 27, 0.08) !important;
	border-radius: 14px !important;
	box-shadow: 0 6px 18px rgba(24, 24, 27, 0.04) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	box-sizing: border-box !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.stiva-products-section ul.stiva-products-grid > li.product:hover {
	transform: translateY(-4px) !important;
	border-color: rgba(220, 18, 18, 0.35) !important;
	box-shadow: 0 14px 28px rgba(24, 24, 27, 0.1) !important;
}

.stiva-products-section ul.stiva-products-grid > li.product .onsale {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	right: auto !important;
	z-index: 5 !important;
	background: #dc1212 !important;
	color: #ffffff !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 14px !important;
	letter-spacing: 0.8px !important;
	padding: 3px 10px !important;
	border-radius: 5px !important;
	line-height: 1.2 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.stiva-products-section ul.stiva-products-grid > li.product a img {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	margin: 0 0 12px !important;
	display: block !important;
}

.stiva-products-section ul.stiva-products-grid > li.product .woocommerce-loop-product__title {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 21px !important;
	line-height: 1.15 !important;
	letter-spacing: 0.4px !important;
	color: #18181b !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
}

.stiva-products-section ul.stiva-products-grid > li.product .price {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #dc1212 !important;
	margin: 0 0 12px !important;
	display: block !important;
}

.stiva-products-section ul.stiva-products-grid > li.product .button {
	width: 100% !important;
	min-height: 42px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #18181b !important;
	color: #ffffff !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 16px !important;
	letter-spacing: 0.8px !important;
	border-radius: 8px !important;
	border: none !important;
	padding: 8px 14px !important;
	margin-top: auto !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease !important;
}

.stiva-products-section ul.stiva-products-grid > li.product .button:hover {
	background: #dc1212 !important;
}

/* Prevent any clearfix or non-product child from occupying Grid Column 1 */
body .stiva-products-section ul.stiva-products-grid::before,
body .stiva-products-section ul.stiva-products-grid::after,
ul.stiva-products-grid::before,
ul.stiva-products-grid::after {
    content: none !important;
    display: none !important;
}
body .stiva-products-section ul.stiva-products-grid > :not(li.product) {
    display: none !important;
}
