/*
Theme Name: iFlower
Theme URI: https://www.iflower.hk
Author: iFlower
Description: Light, responsive storefront theme for the iFlower Shop WordPress plugin.
Version: 1.0.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: iflower
*/

:root {
	--if-rose: #a8324a;
	--if-ink: #2b2326;
	--if-muted: #7d7377;
	--if-line: #eadfdc;
	--if-blush: #fbf3f4;
	--if-cream: #fffaf7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--if-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
	font-size: 15px;
	line-height: 1.65;
}
a { color: var(--if-rose); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }

.site-header { background: #fff; border-bottom: 1px solid var(--if-line); position: sticky; top: 0; z-index: 200; }
.topbar { background: var(--if-blush); font-size: 12px; color: #6b5a5f; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 7px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #6b5a5f; text-decoration: none; }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--if-rose); color: #fff; display: grid; place-items: center; font-size: 20px; }
.site-brand-text strong { display: block; font-size: 20px; color: var(--if-ink); line-height: 1.1; }
.site-brand-text small { display: block; font-size: 10px; letter-spacing: .16em; color: var(--if-muted); }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 9px 11px; color: var(--if-ink); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 6px; }
.main-nav a:hover { background: var(--if-blush); color: var(--if-rose); }
.main-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 190px; background: #fff; box-shadow: 0 8px 24px rgba(80,40,50,.14); border: 1px solid var(--if-line); border-radius: 8px; padding: 6px; z-index: 20; }
.main-nav li:hover > ul { display: block; }
.main-nav ul ul a { font-weight: 400; font-size: 13px; }

.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search { display: flex; border: 1px solid var(--if-line); border-radius: 30px; overflow: hidden; }
.header-search input { border: 0 !important; padding: 7px 12px !important; width: 150px; outline: none; font-size: 13px; }
.header-search button { border: 0; background: var(--if-rose); color: #fff; padding: 0 14px; cursor: pointer; }
.lang-switch, .currency-switch { display: flex; gap: 3px; font-size: 12px; }
.lang-switch a, .currency-switch a { padding: 3px 6px; border-radius: 4px; color: var(--if-muted); text-decoration: none; }
.lang-switch a.active, .currency-switch a.active { background: var(--if-rose); color: #fff; }
.header-account { color: var(--if-ink); text-decoration: none; font-size: 19px; }
.header-cart { position: relative; display: flex; align-items: center; gap: 5px; text-decoration: none; color: var(--if-ink); font-size: 20px; }
.header-cart .count { background: var(--if-rose); color: #fff; border-radius: 12px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; display: grid; place-items: center; }

.site-main { min-height: 60vh; }
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.entry-title { font-size: 30px; margin: 0 0 18px; }
.entry-content { line-height: 1.9; }

.site-footer { background: #33272b; color: #d8cbd0; margin-top: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 44px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.site-footer a { color: #d8cbd0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; text-align: center; font-size: 12px; color: #a99ba0; }
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.footer-bottom a:hover { text-decoration-color: #fff; }

@media (max-width: 980px) {
	.header-inner { flex-wrap: wrap; gap: 12px; }
	.main-nav { order: 3; width: 100%; }
	.header-tools { margin-left: auto; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.header-search { display: none; }
	.footer-inner { grid-template-columns: 1fr; }
	.main-nav ul { gap: 0; }
	.main-nav a { padding: 7px 8px; font-size: 13px; }
}
