/* Jeweler theme — RJ Gems & Jewels. Tokens from Figma. */

:root {
	--color-bg: #ffffff;
	--color-text: #1a1a1a;
	--color-grey-bg: #f6f6f6;
	--color-card-bg: #fafafa;
	--color-footer: #2a2829;
	--color-muted: #6e6e6e;
	--color-border: #e5e2db;
	--font-heading: 'Tenor Sans', serif;
	--font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;
	--container-max: 1280px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.5;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 20px;
}
.container--narrow { max-width: 890px; }

.section { padding: 70px 0; }
.section--grey { background: var(--color-grey-bg); }

.section-head { text-align: center; margin-bottom: 45px; display: flex; flex-direction: column; gap: 10px; }
.section-head__title { font-family: var(--font-heading); font-size: 34px; font-weight: 400; }
.section-head__sub { font-size: 16px; letter-spacing: 0.48px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.42px;
	text-transform: uppercase;
	border: 0;
}
.btn--white { background: #fff; color: #000; }
.btn--sm { padding: 12px 30px; border-radius: 8px; font-size: 16px; letter-spacing: 0.48px; }

/* Topbar */
.topbar { background: #000; height: 30px; display: flex; align-items: center; justify-content: center; }
.topbar__text { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; white-space: pre; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #ececec; }
.site-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 13px 20px;
	display: flex;
	align-items: center;
	gap: 26px;
}
.site-header__logo img { width: 40px; height: 40px; object-fit: contain; display: block; }
.header-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 215px;
	height: 38px;
	border: 1px solid #c4c4c4;
	border-radius: 6px;
	padding: 0 12px;
	gap: 8px;
	flex-shrink: 0;
}
.header-search__icon { flex-shrink: 0; }
.header-search__field { border: 0; outline: 0; width: 100%; font-size: 15px; font-family: inherit; color: #333; background: transparent; }
.header-search__field::placeholder { color: #999; }
.header-nav { flex: 1; display: flex; justify-content: center; }
.header-nav__list { display: flex; gap: 30px; }
.header-nav__list a { font-size: 14px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.header-nav__chevron { width: 10px; height: 6px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-actions__cart { position: relative; display: inline-flex; }
.header-actions__badge {
	position: absolute;
	top: -7px;
	right: -7px;
	background: #000;
	color: #fff;
	font-size: 12px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.4px;
}

/* Hero */
.hero { position: relative; height: 520px; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.hero__content {
	position: relative;
	z-index: 1;
	margin-left: 50%;
	transform: translateX(-50%);
	width: 437px;
	max-width: calc(100% - 40px);
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.hero__title { font-family: var(--font-heading); font-size: 48px; font-weight: 400; }
.hero__subtitle { font-size: 16px; letter-spacing: 0.48px; }
.hero__content .btn { margin-top: 10px; }

/* USP marquee */
.usp-marquee { border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; overflow: hidden; padding: 20px 0; }
.usp-marquee__track { display: flex; gap: 10px; width: max-content; animation: usp-scroll 40s linear infinite; }
.usp-marquee__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 18px; white-space: nowrap; padding-right: 10px; }
.usp-marquee__item img { width: 17px; height: 16px; }
@keyframes usp-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Popular categories */
.popular-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.popular-card {
	position: relative;
	height: 590px;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: 44px;
	gap: 15px;
}
.popular-card__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.15); }
.popular-card__label { position: relative; color: #fff; font-family: var(--font-heading); font-size: 22px; }
.popular-card .btn { position: relative; }

/* Product grid (Custom Grillz) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 27px; }
.product-card { display: block; }
.product-card__media {
	position: relative;
	background: #d9d9d9;
	border-radius: 10px;
	aspect-ratio: 1;
	overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__tag {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 63px;
	height: 43px;
	background: #000;
	border-top-left-radius: 10px;
}
.product-card__tag::after {
	content: '→';
	color: #fff;
	font-size: 18px;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.product-card__name { margin-top: 20px; font-size: 16px; text-transform: capitalize; line-height: 1.5; }
.product-card__price { margin-top: 8px; font-size: 16px; font-weight: 700; color: #242424; }
.product-card__price del { color: var(--color-muted); font-weight: 400; margin-right: 6px; }

/* Our categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 27px 27px; }
.cat-tile { text-align: center; }
.cat-tile__box {
	background: var(--color-card-bg);
	border-radius: 10px;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}
.cat-tile__box img { max-height: 100%; object-fit: contain; mix-blend-mode: darken; }
.cat-tile__label { margin-top: 15px; font-size: 18px; font-weight: 500; text-transform: capitalize; }

/* Why RJ */
.why-rj { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.why-rj__media { position: relative; height: 100%; min-height: 500px; }
.why-rj__media > img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.why-rj__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: 0;
	padding: 0;
}
.why-rj__content { padding: 90px 80px; }
.why-rj__content .section-head__title { margin-bottom: 50px; }
.why-rj__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px 40px; }
.why-feature h3 { font-size: 20px; font-weight: 500; margin: 20px 0 10px; }
.why-feature p { font-size: 14px; color: var(--color-muted); letter-spacing: 0.42px; }

/* Testimonials */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.testimonial-card__photo { height: 326px; }
.testimonial-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-card__body { padding: 22px 17px; }
.testimonial-card__stars { width: 118px; height: 25px; }
.testimonial-card__text { margin: 16px 0 24px; font-size: 16px; color: #1f1f1f; min-height: 48px; }
.testimonial-card__author { display: flex; align-items: center; gap: 15px; }
.testimonial-card__author img { border-radius: 50%; width: 55px; height: 55px; object-fit: cover; }
.testimonial-card__name { font-family: var(--font-heading); font-size: 20px; color: #1f1f1f; }
.testimonial-card__country { font-size: 12px; font-weight: 500; color: #1f1f1f; }

/* FAQ */
.faq__title { text-align: center; margin-bottom: 55px; }
.faq__list { display: flex; flex-direction: column; gap: 24px; }
.faq-item__q {
	width: 100%;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	box-shadow: 0 44px 18px rgba(161, 161, 161, 0.01), 0 16px 15px rgba(161, 161, 161, 0.04);
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 29px;
	font-family: var(--font-heading);
	font-size: 20px;
	text-align: left;
	color: #000;
}
.faq-item__arrow { width: 30px; height: 30px; transition: transform 0.2s; }
.faq-item.is-open .faq-item__arrow { transform: scaleY(-1); }
.faq-item__a { display: none; padding: 20px 15px 0; font-size: 16px; }
.faq-item.is-open .faq-item__a { display: block; }

/* Instagram strip */
.insta-strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.insta-strip__item { aspect-ratio: 240 / 400; }
.insta-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Footer */
.site-footer { background: var(--color-footer); color: #fff; }
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 60px 20px 30px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 40px; }
.footer-col__title { font-family: var(--font-heading); font-size: 18px; font-weight: 400; margin-bottom: 24px; }
.footer-col__links li { margin-bottom: 10px; }
.footer-col__links a, .footer-col__text { font-size: 14px; letter-spacing: 0.42px; }
.footer-col__text { margin-bottom: 14px; }
.footer-newsletter { position: relative; display: flex; background: #fff; border-radius: 55px; height: 49px; overflow: hidden; margin-top: 20px; }
.footer-newsletter__field { flex: 1; border: 0; outline: 0; padding: 0 24px; font-size: 14px; font-family: inherit; color: #0b0801; }
.footer-newsletter__btn {
	background: #000;
	color: #f2ebde;
	border: 0;
	border-radius: 55px;
	padding: 0 30px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.42px;
	text-transform: uppercase;
}
.footer-badges { display: flex; align-items: flex-end; justify-content: space-between; margin: 40px 0 30px; }
.footer-badges__reviews { display: flex; flex-direction: column; gap: 8px; }
.footer-social { display: flex; gap: 30px; align-items: center; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom__copy, .footer-bottom__policies { font-size: 14px; letter-spacing: 0.42px; }
.footer-bottom__policies { display: flex; gap: 10px; }
.footer-payments { display: flex; gap: 10px; align-items: flex-end; }

/* Woo content pages */
.woocommerce-page .site-main > .container { padding-top: 40px; padding-bottom: 40px; }

/* Responsive */
@media (max-width: 1024px) {
	.header-nav { display: none; }
	.popular-cats__grid, .testimonials__grid { grid-template-columns: 1fr 1fr; }
	.product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
	.why-rj { grid-template-columns: 1fr; }
	.why-rj__content { padding: 60px 30px; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.insta-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.header-search { display: none; }
	.popular-cats__grid, .product-grid, .cat-grid, .testimonials__grid { grid-template-columns: 1fr; }
	.popular-card { height: 440px; }
	.hero__title { font-size: 36px; }
	.footer-cols { grid-template-columns: 1fr; }
	.insta-strip { grid-template-columns: repeat(2, 1fr); }
	.footer-badges { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Header nav dropdowns (fallback nav + wp_nav_menu submenus) */
.header-nav__list > li { position: relative; }
.header-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	min-width: 220px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
	padding: 10px;
	margin: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 60;
}
/* small hover bridge so the menu doesn't close in the gap */
.header-nav__list .has-dropdown::after,
.header-nav__list .menu-item-has-children::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
}
.header-nav__list .has-dropdown:hover > .sub-menu,
.header-nav__list .has-dropdown:focus-within > .sub-menu,
.header-nav__list .menu-item-has-children:hover > .sub-menu,
.header-nav__list .menu-item-has-children:focus-within > .sub-menu,
.header-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(6px);
}
.header-nav__list .sub-menu li { margin: 0; }
.header-nav__list .sub-menu a {
	display: block;
	padding: 9px 14px;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 6px;
	color: var(--color-text);
}
.header-nav__list .sub-menu a:hover { background: var(--color-grey-bg); color: var(--color-accent); }
.header-nav__list .has-dropdown:hover .header-nav__chevron,
.header-nav__list .menu-item-has-children:hover .header-nav__chevron { transform: rotate(180deg); }
.header-nav__chevron { transition: transform 0.18s ease; }

/* ---- Mobile menu (hamburger + drawer) ---- */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: 0; margin-right: 4px; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: #000; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.25s ease; }
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0;
	width: 86%; max-width: 360px;
	background: #fff;
	transform: translateX(-100%);
	transition: transform 0.28s ease;
	display: flex; flex-direction: column;
	overflow-y: auto;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #ececec; }
.mobile-drawer__close { background: none; border: 0; font-size: 30px; line-height: 1; color: #000; }
.mobile-drawer__search { display: flex; align-items: center; gap: 8px; margin: 16px 20px; padding: 0 12px; height: 44px; border: 1px solid #c4c4c4; border-radius: 8px; }
.mobile-drawer__search input[type="search"] { border: 0; outline: 0; width: 100%; font-family: inherit; font-size: 15px; background: transparent; }

.mobile-nav { list-style: none; margin: 0; padding: 0 8px; }
.mobile-nav__item { border-bottom: 1px solid #f0f0f0; }
.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__link { flex: 1; display: block; padding: 16px 12px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; }
.mobile-nav__toggle { background: none; border: 0; padding: 16px; }
.mobile-nav__toggle img { transition: transform 0.2s ease; display: block; }
.mobile-nav__item.is-open > .mobile-nav__row .mobile-nav__toggle img { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.28s ease; background: var(--color-grey-bg); border-radius: 8px; }
.mobile-nav__item.is-open > .mobile-nav__sub { max-height: 400px; }
.mobile-nav__sub li a { display: block; padding: 12px 24px; font-size: 13px; text-transform: uppercase; color: #444; }
.mobile-nav__sub li a:hover { color: var(--color-accent); }

.mobile-drawer__foot { margin-top: auto; padding: 20px; border-top: 1px solid #ececec; display: flex; flex-direction: column; gap: 14px; }
.mobile-drawer__foot a { display: flex; align-items: center; gap: 10px; font-size: 14px; text-transform: uppercase; }

body.drawer-open { overflow: hidden; }

/* Show hamburger, hide desktop nav on tablet/mobile */
@media (max-width: 1024px) {
	.nav-toggle { display: flex; }
	.site-header__inner .header-nav { display: none; }
	.site-header__logo { margin-right: auto; }
}

/* Footer Trustpilot button (replaces the empty exported SVG) */
.footer-trustpilot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #00b67a;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 4px;
	width: max-content;
}
.footer-trustpilot__star { color: #fff; font-size: 16px; line-height: 1; }
.footer-trustpilot:hover { opacity: 0.92; }

/* Header: search on the right (next to account/cart), nav beside the logo — matches Figma */
@media (min-width: 1025px) {
	.site-header__inner .header-nav { flex: 0 1 auto; justify-content: flex-start; order: 2; }
	.site-header__inner .header-search { order: 3; margin-left: auto; }
	.site-header__inner .header-actions { order: 4; }
	.site-header__logo { order: 1; }
}
