/*
Theme Name:   Fonecia
Theme URI:    https://fonecia.com
Description:  Fonecia.com brand theme: a Storefront child theme for a B2B marketplace of goods made in China and India. Works with WooCommerce, Dokan and the Fonecia Core plugin.
Author:       Fonecia.com
Template:     storefront
Version:      1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain:  fonecia
*/

:root {
	--fn-purple: #5E1B4F;
	--fn-purple-deep: #4A1540;
	--fn-gold: #B8862B;
	--fn-gold-light: #D9B26A;
	--fn-papyrus: #F6F1E7;
	--fn-ink: #2B1530;
	--fn-text: #4A3447;
	--fn-muted: #6A5566;
	--fn-line: #E2D8C6;
	--fn-surface: #FFFDF8;
	--fn-display: "Cinzel", "Trajan Pro", Georgia, serif;
	--fn-body: "Jost", "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base type ---------- */
body,
button, input, select, textarea, .button {
	font-family: var(--fn-body);
}
body { color: var(--fn-text); overflow-x: hidden; }
h1, h2, .alpha, .beta,
.site-main .page-title, .entry-title,
.woocommerce-products-header__title,
.single-product .product_title {
	font-family: var(--fn-display);
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--fn-ink);
}
h3, h4, h5, h6, .woocommerce-loop-product__title { font-family: var(--fn-body); }
a:focus, button:focus, input:focus, .button:focus { outline: 3px solid var(--fn-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--fn-line); padding-top: 1.2em; }
.site-branding { margin-bottom: 1em; }
.fonecia-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fn-ink); }
.fonecia-brand .fonecia-mark { width: 44px; height: 44px; max-width: none; display: block; }
.fonecia-wordmark {
	font-family: var(--fn-display);
	font-weight: 600;
	font-size: 26px;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--fn-ink);
}
.fonecia-wordmark small {
	font-family: var(--fn-body);
	font-size: 12px;
	letter-spacing: .22em;
	color: var(--fn-gold);
	font-weight: 500;
	margin-left: 2px;
}
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-weight: 600; }
.site-header-cart .cart-contents { color: var(--fn-ink); }
.storefront-primary-navigation { background: var(--fn-surface); }

/* ---------- Buttons ---------- */
.button, button, input[type="submit"], .added_to_cart, .widget a.button {
	border-radius: 6px;
	font-weight: 600;
}
.button.alt, button.alt, input[type="submit"].alt,
.single_add_to_cart_button, .checkout-button, #place_order {
	background-color: var(--fn-purple);
	border-color: var(--fn-purple);
	color: var(--fn-papyrus);
}
.button.alt:hover, button.alt:hover, .single_add_to_cart_button:hover { background-color: var(--fn-purple-deep); color: #fff; }

/* ---------- Product cards ---------- */
ul.products li.product {
	background: var(--fn-surface);
	border: 1px solid var(--fn-line);
	border-radius: 10px;
	padding: 0 0 16px;
	overflow: hidden;
	text-align: left;
}
ul.products li.product img { margin-bottom: 12px; border-radius: 0; }
ul.products li.product .fonecia-origin,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product .star-rating,
ul.products li.product .button { margin-left: 14px; margin-right: 14px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 16px; font-weight: 600; color: var(--fn-ink); line-height: 1.3; }
ul.products li.product .price { font-weight: 700; font-size: 18px; color: var(--fn-ink); }
ul.products li.product:hover { border-color: var(--fn-muted); }
.onsale { border-color: var(--fn-gold); color: var(--fn-gold); border-radius: 4px; }
.single-product div.product .price { color: var(--fn-ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer a:not(.button) { color: var(--fn-gold-light); }
.site-footer .site-info { border-top: 1px solid rgba(246, 241, 231, .15); }

/* ---------- Home template ---------- */
.fonecia-home .site-content > .col-full { max-width: none; padding: 0; margin: 0; }
.fonecia-home .site-content { padding-top: 0; }
.fonecia-home .site-header { margin-bottom: 0; }
.fonecia-home .woocommerce-breadcrumb, .fonecia-home .storefront-breadcrumb { display: none; }
.fonecia-bleed .col-full { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.fn-hero { position: relative; overflow: hidden; background: var(--fn-purple); color: var(--fn-papyrus); }
.fn-hero__inner { position: relative; z-index: 1; padding-top: 64px !important; padding-bottom: 96px !important; }
.fn-hero__waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; opacity: .35; pointer-events: none; }
.fn-hero__waves path { fill: none; stroke: var(--fn-gold); stroke-width: 5; stroke-linecap: round; }
.fn-hero__coin { position: absolute; top: 56px; right: max(24px, calc(50% - 600px)); width: 300px; height: 300px; pointer-events: none; }
@media (max-width: 1060px) { .fn-hero__coin { display: none; } }
.fn-hero__tag { font-size: 14px; letter-spacing: .22em; color: var(--fn-gold-light); margin: 0 0 18px; font-weight: 500; }
.fn-hero h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.12; max-width: 17ch; color: var(--fn-papyrus); margin: 0; }
.fn-hero__lede { font-size: clamp(17px, 2vw, 20px); max-width: 56ch; color: #E9DCE5; margin: 18px 0 32px; }
.fn-hero .search-field { width: 100%; }
.fn-hero__popular { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; color: #E0CDDA; }
.fn-hero__popular a { padding: 4px 12px; border: 1px solid rgba(217, 178, 106, .45); border-radius: 999px; background: rgba(246, 241, 231, .08); color: var(--fn-papyrus); text-decoration: none; font-size: 14px; }
.fn-hero__popular a:hover { background: rgba(246, 241, 231, .18); }
.fn-hero__facts { display: flex; flex-wrap: wrap; gap: 24px 44px; margin: 44px 0 0; }
.fn-hero__facts dt { font-family: var(--fn-display); font-size: 24px; font-weight: 600; color: var(--fn-gold-light); margin: 0; }
.fn-hero__facts dd { margin: 0; color: #E0CDDA; font-size: 15px; }

.fn-section { padding-top: 64px !important; padding-bottom: 32px !important; }
.fn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fn-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.fn-head p { margin: 6px 0 0; color: var(--fn-muted); }
.fn-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
.fn-cats a { flex: none; padding: 9px 14px; border: 1.5px solid var(--fn-line); border-radius: 8px; background: var(--fn-surface); color: var(--fn-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.fn-cats a:hover { border-color: var(--fn-purple); }
.fn-cats span { color: var(--fn-muted); font-weight: 400; font-size: 13px; margin-left: 4px; }

.fn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--fn-ink); counter-reset: fn; }
.fn-steps li { padding: 22px 22px 0 0; counter-increment: fn; }
.fn-steps li::before { content: counter(fn); display: block; font-family: var(--fn-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--fn-gold); }
.fn-steps h3 { font-size: 19px; margin: 12px 0 6px; color: var(--fn-ink); }
.fn-steps p { margin: 0; color: var(--fn-muted); }
@media (max-width: 820px) { .fn-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 480px) { .fn-steps { grid-template-columns: 1fr; } }

.fn-rfq { background: var(--fn-surface); border-top: 1px solid var(--fn-line); border-bottom: 1px solid var(--fn-line); margin-top: 48px; }
.fn-rfq__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding-top: 64px !important; padding-bottom: 64px !important; }
.fn-rfq h2 { font-size: clamp(26px, 3.2vw, 36px); }
.fn-rfq__copy p, .fn-rfq__copy li { color: var(--fn-muted); }
@media (max-width: 820px) { .fn-rfq__inner { grid-template-columns: 1fr; gap: 24px; } }

.fn-sell { background: var(--fn-ink); color: var(--fn-papyrus); }
.fn-sell__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 48px !important; padding-bottom: 48px !important; }
.fn-sell h2 { color: var(--fn-papyrus); font-size: clamp(22px, 3vw, 32px); max-width: 26ch; margin: 0; }
.fn-sell p { margin: 8px 0 0; color: #CDBBC8; max-width: 52ch; }
.fn-sell .button.alt { background: var(--fn-gold); border-color: var(--fn-gold); color: var(--fn-ink); }

/* ---------- Dokan touches ---------- */
.dokan-btn-theme, .dokan-btn-theme:visited { background-color: var(--fn-purple) !important; border-color: var(--fn-purple) !important; color: var(--fn-papyrus) !important; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu { background: var(--fn-ink); }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover { background: var(--fn-purple); }
.dokan-single-store .profile-frame .profile-info-box .profile-info-summery-wrapper .profile-info-summery { background-color: rgba(43, 21, 48, .7); }
