/*
Theme Name:   FFP Store
Description:  Modern fashion storefront (Storefront child theme) for the FastFlowPe test store.
Template:     storefront
Version:      1.0.0
Text Domain:  ffp-store
*/

:root {
	--ink: #111827;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #ffffff;
	--soft: #f6f5f3;
	--accent: #111827;
	--sale: #dc2626;
	--radius: 14px;
}

body.ffp-modern, body.ffp-modern button, body.ffp-modern input, body.ffp-modern select, body.ffp-modern textarea {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
}
body.ffp-modern { background: var(--bg); -webkit-font-smoothing: antialiased; }
.ffp-modern h1, .ffp-modern h2, .ffp-modern h3, .ffp-modern h4 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.ffp-modern a { color: var(--ink); }

/* Full-width content, no sidebar */
.ffp-modern #secondary { display: none; }
.ffp-modern .content-area, .ffp-modern.right-sidebar .content-area { width: 100% !important; float: none !important; margin: 0 !important; }
.ffp-modern .col-full { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
.home .entry-header, .home .storefront-breadcrumb { display: none; }

/* Announcement bar */
.ffp-announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 9px 12px; letter-spacing: .02em; }

/* Header */
.ffp-modern .site-header { background: #fff; border-bottom: 1px solid var(--line); padding-top: 0; padding-bottom: 0; position: sticky; top: 0; z-index: 50; }
.ffp-modern .site-branding .site-title, .ffp-modern .site-branding .site-title a { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--ink); }
.ffp-modern .site-description { display: none; }
.ffp-modern .main-navigation ul.menu > li > a, .ffp-modern .main-navigation ul.nav-menu > li > a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 1.4em 1em; }
.ffp-modern .main-navigation ul.menu > li > a:hover { color: var(--muted); }
.ffp-modern .site-search .widget_product_search input[type="search"] { border-radius: 999px; background: var(--soft); border: 1px solid transparent; padding-left: 1.2em; }
.ffp-modern .site-header-cart .cart-contents { color: var(--ink); font-weight: 600; }

/* Buttons */
.ffp-modern button, .ffp-modern .button, .ffp-modern input[type="submit"], .ffp-modern .added_to_cart,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	background: var(--accent); color: #fff; border: 0; border-radius: 999px; font-weight: 600;
	padding: .85em 1.7em; transition: transform .15s ease, opacity .15s ease; box-shadow: none;
}
.ffp-modern button:hover, .ffp-modern .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: #000; color: #fff; transform: translateY(-1px); }
.ffp-modern .button.ffp-btn-light, .ffp-hero .button { background: #fff; color: var(--ink); }
.ffp-hero .button:hover { background: #f3f4f6; color: var(--ink); }

/* Product grid */
.ffp-modern ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; margin: 0 0 2em; padding: 0; }
.ffp-modern ul.products::before, .ffp-modern ul.products::after { display: none !important; }
.ffp-modern ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; position: relative; text-align: left; padding: 0; background: transparent; }
.ffp-modern ul.products li.product a img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); background: var(--soft); margin: 0 0 14px; transition: transform .35s ease; }
.ffp-modern ul.products li.product:hover a img { transform: scale(1.03); }
.ffp-modern ul.products li.product a:first-child { display: block; overflow: hidden; border-radius: var(--radius); }
.ffp-modern .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; padding: 0 !important; margin: 0 0 4px; }
.ffp-modern ul.products li.product .price { color: var(--ink); font-weight: 600; font-size: 15px; display: block; }
.ffp-modern ul.products li.product .price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.ffp-modern ul.products li.product .price ins { background: transparent; text-decoration: none; }
.ffp-modern ul.products li.product .button { margin-top: 10px; width: 100%; text-align: center; background: var(--soft); color: var(--ink); }
.ffp-modern ul.products li.product .button:hover { background: var(--ink); color: #fff; }
.ffp-modern .onsale { background: var(--sale); color: #fff; border: 0; border-radius: 999px; min-width: 0; min-height: 0; padding: .35em .9em; font-size: 12px; font-weight: 700; line-height: 1.4; top: 12px; left: 12px; right: auto; margin: 0; }

/* Category tiles (product_categories shortcode) */
.ffp-modern ul.products li.product-category a { display: block; }
.ffp-modern ul.products li.product-category img { aspect-ratio: 4 / 5; }
.ffp-modern ul.products li.product-category h2 { font-size: 17px; font-weight: 600; padding: 0; }
.ffp-modern ul.products li.product-category h2 mark { background: none; color: var(--muted); font-weight: 400; }

/* Home sections */
.ffp-hero { background: linear-gradient(120deg, #111827 0%, #374151 55%, #9a3412 130%); color: #fff; border-radius: 24px; padding: 6em 3em; margin: 1.5em 0 3em; text-align: left; }
.ffp-hero .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; opacity: .8; margin: 0 0 1em; }
.ffp-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 .4em; max-width: 14ch; }
.ffp-hero p.sub { font-size: 1.1rem; opacity: .85; max-width: 46ch; margin: 0 0 1.8em; }
.ffp-section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 3em 0 1em; }
.ffp-section-title h2 { margin: 0; font-size: 1.75rem; }
.ffp-section-title a { font-size: 14px; color: var(--muted); }
.ffp-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--soft); border-radius: var(--radius); padding: 1.8em; margin: 3em 0; }
.ffp-trust div { font-size: 14px; color: var(--muted); }
.ffp-trust strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* Single product */
.ffp-modern.single-product div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.ffp-modern.single-product .product_title { font-size: 2rem; }
.ffp-modern.single-product div.product p.price, .ffp-modern.single-product div.product span.price { color: var(--ink); font-size: 1.5rem; font-weight: 700; }
.ffp-modern .woocommerce-tabs ul.tabs li { border: 0; background: transparent; }
.ffp-modern .woocommerce-tabs ul.tabs li.active a { border-bottom: 2px solid var(--ink); }
.ffp-modern .quantity .qty { border-radius: 999px; border: 1px solid var(--line); }
.ffp-modern select, .ffp-modern input[type="text"], .ffp-modern input[type="email"], .ffp-modern input[type="tel"], .ffp-modern input[type="number"], .ffp-modern input[type="password"], .ffp-modern textarea {
	border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none;
}

/* Cart / checkout */
.ffp-modern table.shop_table, .ffp-modern .cart_totals, .ffp-modern .woocommerce-checkout-review-order { border-radius: var(--radius); }
.ffp-modern .cart_totals, .ffp-modern .woocommerce-checkout-review-order-table { background: var(--soft); padding: 1.4em; }

/* Footer */
.ffp-modern .site-footer { background: #0b1020; color: #cbd5e1; padding: 3em 0 0; border: 0; }
.ffp-modern .site-footer h1, .ffp-modern .site-footer h2, .ffp-modern .site-footer h3, .ffp-modern .site-footer h4, .ffp-modern .site-footer a { color: #fff; }
.ffp-footer-bar { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2em; padding: 1.4em 0; font-size: 13px; }

@media (max-width: 1024px) { .ffp-modern ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
	.ffp-modern ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
	.ffp-hero { padding: 3.5em 1.6em; border-radius: 18px; }
	.ffp-trust { grid-template-columns: repeat(2, 1fr); }
}
