/*
Theme Name:   Demo Tech Solutions
Description:  Child theme του Storefront για το δοκιμαστικό κατάστημα shop-demo.emblem.gr. Φανταστική εταιρεία.
Template:     storefront
Version:      1.1.2
Text Domain:  psifida
*/

:root {
	--psf-ink: #0b1f4b;
	--psf-ink-2: #12306e;
	--psf-text: #334155;
	--psf-muted: #64748b;
	--psf-line: #e2e8f0;
	--psf-bg: #f8fafc;
	--psf-card: #ffffff;
	--psf-primary: #1767d6;
	--psf-primary-dark: #1250ad;
	--psf-accent: #f97316;
	--psf-teal: #14b8a6;
	--psf-pink: #0ea5e9;
	--psf-radius: 18px;
	--psf-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
	--psf-shadow-lg: 0 20px 50px rgba(11, 31, 75, .18);
}

/* ---------- Base ---------- */

body, button, input, select, textarea,
.main-navigation ul li a, .widget h1, .widget h2, .widget h3 {
	font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: var(--psf-bg); color: var(--psf-text); }
h1, h2, h3, h4, .site-title, .woocommerce-loop-product__title { color: var(--psf-ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--psf-primary); }
a:hover, a:focus { color: var(--psf-primary-dark); }
.col-full { max-width: 1240px; }

button, input[type="button"], input[type="submit"], .button, .added_to_cart,
.widget a.button, .site-header-cart .widget_shopping_cart a.button {
	background: var(--psf-primary); color: #fff; border-radius: 12px; font-weight: 600;
	padding: .75em 1.3em; border: 0; transition: background .15s, transform .15s;
}
button:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover {
	background: var(--psf-primary-dark); color: #fff; transform: translateY(-1px);
}
button.alt, input[type="submit"].alt, .button.alt, .single_add_to_cart_button,
.wc-proceed-to-checkout .checkout-button, #place_order {
	background: var(--psf-accent) !important; color: #fff !important;
}
button.alt:hover, .button.alt:hover, .single_add_to_cart_button:hover, #place_order:hover { background: #ea580c !important; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
input[type="password"], textarea, select, .select2-container .select2-selection--single {
	background: #fff; border: 1px solid var(--psf-line); border-radius: 10px; box-shadow: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--psf-primary); outline: 3px solid rgba(23, 103, 214, .15); }

/* ---------- Top bar ---------- */

.psf-topbar { background: var(--psf-ink); color: #bfdbfe; font-size: .82rem; }
.psf-topbar .col-full { display: flex; justify-content: space-between; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.psf-topbar__demo { color: #fdba74; font-weight: 600; }
@media (max-width: 767px) {
	.psf-topbar .col-full { justify-content: center; }
	.psf-topbar .col-full span:not(.psf-topbar__demo) { display: none; }
}

/* ---------- Header ---------- */

.site-header { background: #fff; border-bottom: 1px solid var(--psf-line); padding-top: 1.4em; margin-bottom: 0; }
.site-header .site-branding { margin-bottom: 1.2em; }
.psf-logo { display: inline-flex; align-items: center; text-decoration: none; }
.psf-logo__img { display: block; height: 66px; width: auto; max-width: 100%; }
/* Το Storefront δίνει στο branding ~22% του πλάτους· το λογότυπο είναι φαρδύ
   (≈4.8:1) και στριμώχνεται, οπότε παίρνει χώρο από την αναζήτηση. */
@media (min-width: 768px) {
	.woocommerce-active .site-header .site-branding { width: 34%; }
	.woocommerce-active .site-header .site-search { width: 36%; }
}
.psf-footer .psf-logo__img { height: 52px; }
/* Το Storefront κόβει κάθε εικόνα του branding στα 230px πλάτος. */
.site-header .site-branding img.psf-logo__img { height: 66px; width: auto; max-width: 100%; }

.site-search .widget_product_search input[type="search"] {
	border-radius: 999px; padding: .8em 1.2em .8em 2.8em; background: var(--psf-bg); border: 1px solid var(--psf-line);
}
.site-search .widget_product_search form::before { top: 1em; left: 1.1em; color: var(--psf-muted); }

.storefront-primary-navigation { background: #fff; }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a {
	color: var(--psf-ink); font-weight: 600; font-size: .95rem; padding: 1.1em .95em;
}
.main-navigation ul.menu > li > a:hover, .main-navigation ul.menu > li.current-menu-item > a { color: var(--psf-primary); }
.main-navigation ul.menu > li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--psf-primary); }
.site-header-cart .cart-contents { color: var(--psf-ink); font-weight: 600; }
.site-header-cart .cart-contents .count { background: var(--psf-accent); color: #fff; opacity: 1; border-radius: 999px; padding: .1em .6em; font-size: .75em; }
.site-header-cart .widget_shopping_cart { border-radius: 0 0 14px 14px; box-shadow: var(--psf-shadow-lg); }

.storefront-breadcrumb { background: transparent; margin-bottom: 1.5em; }
.woocommerce-breadcrumb { color: var(--psf-muted); font-size: .85rem; }

/* ---------- Buttons ---------- */

.psf-btn { display: inline-flex; align-items: center; justify-content: center; padding: .9em 1.5em; border-radius: 14px; font-weight: 700; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; }
.psf-btn:hover { transform: translateY(-2px); }
.psf-btn--primary { background: var(--psf-accent); color: #fff !important; box-shadow: 0 10px 24px rgba(249, 115, 22, .35); }
.psf-btn--primary:hover { background: #ea580c; }
.psf-btn--ghost { background: rgba(255, 255, 255, .12); color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.psf-btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.psf-btn--ghost-light { color: #dbeafe !important; box-shadow: inset 0 0 0 1.5px rgba(219, 234, 254, .4); }
.psf-btn--light { background: #fff; color: var(--psf-ink) !important; padding: .7em 1.2em; }

.psf-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--psf-accent); margin-bottom: .6rem; }
.psf-pill { display: inline-block; vertical-align: middle; font-size: .75rem; background: #fee2e2; color: #b91c1c; padding: .25em .7em; border-radius: 999px; margin-left: .5rem; font-weight: 700; }

/* ---------- Home ---------- */

.psf-home { padding-top: 1.8rem; }
/* Η αρχική δεν έχει sidebar: το content πιάνει όλο το πλάτος. */
.home .content-area { width: 100%; float: none; margin-right: 0; }
.home .site-main { margin-bottom: 0; }

.psf-hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center;
	padding: 3.5rem 3.5rem 3.2rem; border-radius: 28px; color: #dbeafe;
	background:
		radial-gradient(1200px 400px at 110% -10%, rgba(14, 165, 233, .55), transparent 60%),
		radial-gradient(800px 500px at -10% 120%, rgba(56, 189, 248, .25), transparent 60%),
		linear-gradient(135deg, #0b1f4b 0%, #12306e 50%, #1d4ed8 100%);
	box-shadow: var(--psf-shadow-lg);
}
.psf-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; font-weight: 800; margin: 0 0 1rem; letter-spacing: -.03em; }
.psf-hero h1 span { background: linear-gradient(90deg, #7dd3fc, #38bdf8 55%, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psf-hero p { font-size: 1.1rem; color: #bfdbfe; max-width: 34em; margin-bottom: 1.8rem; }
.psf-hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.psf-hero__stats { list-style: none; margin: 2.2rem 0 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.psf-hero__stats li { font-size: .85rem; color: #93c5fd; }
.psf-hero__stats strong { display: block; color: #fff; font-size: 1.4rem; font-weight: 800; }

.psf-hero__art { position: relative; min-height: 380px; }
.psf-card {
	position: absolute; width: 190px; background: #fff; border-radius: 20px; padding: 10px 10px 14px;
	box-shadow: 0 24px 50px rgba(15, 23, 42, .35); text-decoration: none !important; z-index: 2; transition: transform .25s;
}
.psf-card img { width: 100%; border-radius: 14px; display: block; margin-bottom: .6rem; }
.psf-card__name { display: block; font-size: .85rem; font-weight: 600; color: var(--psf-ink); padding: 0 .3rem; line-height: 1.25; min-height: 2.5em; }
.psf-card__price { display: block; font-size: .95rem; font-weight: 800; color: var(--psf-accent); padding: .2rem .3rem 0; }
.psf-card__price del { color: var(--psf-muted); font-weight: 500; font-size: .8em; }
.psf-card__price ins { text-decoration: none; }
/* Τρεις κάρτες σε βεντάλια: καμία δεν σκεπάζει το κείμενο της άλλης. */
.psf-card--a { top: 70px; left: 0; transform: rotate(-7deg); }
.psf-card--b { top: 0; left: 50%; margin-left: -95px; transform: rotate(0deg); z-index: 3; }
.psf-card--c { top: 80px; right: 0; transform: rotate(7deg); }
.psf-card:hover { transform: rotate(0) translateY(-6px) scale(1.04); z-index: 5; }
.psf-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.psf-blob--1 { width: 200px; height: 200px; background: #f97316; opacity: .5; bottom: -30px; left: 20%; }
.psf-blob--2 { width: 120px; height: 120px; background: #0ea5e9; opacity: .55; top: -20px; right: 8%; }

.psf-usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.6rem 0 3.2rem; }
.psf-usp > div { background: #fff; border-radius: var(--psf-radius); padding: 1.1rem 1.2rem; box-shadow: var(--psf-shadow); display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.psf-usp__icon { grid-row: span 2; font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; background: #eff6ff; border-radius: 14px; }
.psf-usp strong { color: var(--psf-ink); font-size: .98rem; }
.psf-usp small { color: var(--psf-muted); font-size: .82rem; }

.psf-section { margin-bottom: 3.4rem; }
.psf-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.3rem; }
.psf-section__head h2 { font-size: 1.75rem; margin: 0; }
.psf-section__head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.psf-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.psf-cat {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .15rem; padding: 1.4rem 1.2rem 1.2rem;
	min-height: 200px; border-radius: 22px; text-decoration: none !important; color: #fff; transition: transform .2s, box-shadow .2s;
}
.psf-cat:hover { transform: translateY(-4px); box-shadow: var(--psf-shadow-lg); color: #fff; }
.psf-cat__glyph { font-size: 2.6rem; line-height: 1; margin-bottom: auto; opacity: .95; }
.psf-cat strong { color: #fff; font-size: 1.12rem; margin-top: 1.2rem; }
.psf-cat small { color: rgba(255, 255, 255, .85); font-size: .82rem; }
.psf-cat em { font-style: normal; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: .2em .7em; align-self: flex-start; margin-top: .6rem; }
.psf-cat::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .14); right: -40px; top: -40px; }
.psf-tone--indigo { background: linear-gradient(150deg, #0ea5e9, #1d4ed8); }
.psf-tone--amber  { background: linear-gradient(150deg, #f59e0b, #b45309); }
.psf-tone--teal   { background: linear-gradient(150deg, #2dd4bf, #0f766e); }
.psf-tone--violet { background: linear-gradient(150deg, #a78bfa, #6d28d9); }
.psf-tone--pink   { background: linear-gradient(150deg, #f472b6, #be185d); }

.psf-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 3.4rem; }
.psf-promo {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 1rem;
	padding: 2rem; border-radius: 24px; text-decoration: none !important; min-height: 260px; transition: transform .2s;
}
.psf-promo:hover { transform: translateY(-3px); }
.psf-promo h3 { font-size: 1.55rem; line-height: 1.15; margin: 0 0 .6rem; color: #fff; }
.psf-promo p { font-size: .92rem; margin-bottom: 1.2rem; }
.psf-promo img { width: 100%; border-radius: 18px; transform: rotate(4deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.psf-promo--coffee { background: linear-gradient(135deg, #78350f, #b45309 60%, #f59e0b); color: #fde68a; }
.psf-promo--coffee .psf-eyebrow { color: #fde68a; }
.psf-promo--biz { background: linear-gradient(135deg, #134e4a, #0f766e 60%, #2dd4bf); color: #ccfbf1; }
.psf-promo--biz .psf-eyebrow { color: #99f6e4; }

.psf-emblem {
	display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem 3rem; align-items: start; padding: 3rem; border-radius: 28px; margin-bottom: 3.4rem;
	background: radial-gradient(700px 300px at 100% 0, rgba(23, 103, 214, .55), transparent 60%), var(--psf-ink); color: #bfdbfe;
}
.psf-emblem h2 { color: #fff; font-size: 2rem; line-height: 1.15; margin: 0 0 1rem; }
.psf-emblem strong { color: #fff; }
.psf-steps { list-style: none; margin: 0; display: grid; gap: .9rem; }
.psf-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 1rem 1.2rem; }
.psf-steps li span { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }
.psf-steps small { color: #93c5fd; font-size: .88rem; }
.psf-emblem__cta { grid-column: 1 / -1; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Product grid (everywhere) ---------- */

ul.products li.product {
	background: #fff; border-radius: var(--psf-radius); padding: 12px 12px 16px; box-shadow: var(--psf-shadow);
	transition: transform .2s, box-shadow .2s; text-align: left;
}
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--psf-shadow-lg); }
ul.products li.product img { border-radius: 12px; margin-bottom: .9em; }
ul.products li.product .woocommerce-loop-product__title { font-size: .98rem; font-weight: 600; padding: 0 .2em; min-height: 2.5em; }
ul.products li.product .price { color: var(--psf-ink); font-weight: 800; font-size: 1.05rem; padding: 0 .2em; display: block; margin-bottom: .9em; }
ul.products li.product .price del { color: var(--psf-muted); font-weight: 500; font-size: .85em; opacity: 1; }
ul.products li.product .price ins { color: var(--psf-accent); text-decoration: none; font-weight: 800; }
ul.products li.product .button { width: 100%; text-align: center; margin: 0; background: var(--psf-ink); }
ul.products li.product .button:hover { background: var(--psf-primary); }
.onsale {
	position: absolute; top: 20px; left: 20px; z-index: 3; border: 0; background: var(--psf-accent); color: #fff;
	border-radius: 999px; padding: .3em .8em; font-weight: 800; font-size: .8rem; box-shadow: 0 6px 14px rgba(249, 115, 22, .35);
}
ul.products li.product { position: relative; }
.single-product div.product { position: relative; }
.single-product div.product .onsale { top: 14px; left: 14px; }

.woocommerce-products-header__title.page-title, .page-title, .entry-title { font-weight: 800; color: var(--psf-ink); }
.storefront-sorting { background: #fff; border-radius: 14px; padding: .8em 1em; box-shadow: var(--psf-shadow); margin-bottom: 1.6em; }
.woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--psf-primary); color: #fff; border-radius: 8px; }

/* ---------- Single product / cart / checkout ---------- */

.single-product div.product .woocommerce-product-gallery img { border-radius: 20px; }
.single-product div.product .product_title { font-size: 2.1rem; font-weight: 800; }
.single-product div.product p.price { color: var(--psf-accent); font-size: 1.6rem; font-weight: 800; }
.single-product div.product .woocommerce-tabs ul.tabs li a { font-weight: 600; }
table.shop_table, .cart_totals, .woocommerce-checkout-review-order { background: #fff; border-radius: var(--psf-radius); }
table.shop_table th, table.shop_table td { border-color: var(--psf-line); }
.woocommerce-info, .woocommerce-message, .woocommerce-noreviews, p.no-comments {
	border-radius: 14px; background: #eff6ff; color: var(--psf-ink); border-left: 4px solid var(--psf-primary);
}
.woocommerce-message .button, .woocommerce-info .button { background: var(--psf-primary); }
.woocommerce-error { border-radius: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--psf-ink); color: #93c5fd; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer, .site-footer p, .site-footer li { color: #93c5fd; }
/* Το Storefront γράφει inline χρώμα για τα links του footer (σκούρο, για ανοιχτό φόντο). */
.site-footer a:not(.button):not(.components-button) { color: #dbeafe !important; }
.site-footer a:not(.button):not(.components-button):hover { color: #fff !important; }
.site-footer h4 { color: #fff !important; }
.psf-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.psf-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.psf-footer ul { list-style: none; margin: 0; }
.psf-footer li { margin-bottom: .5rem; font-size: .92rem; }
.psf-footer li a { text-decoration: none; }
.psf-footer__brand p { font-size: .9rem; margin-top: 1rem; max-width: 26em; }
.psf-pay { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.psf-pay span { font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .1); color: #dbeafe; border-radius: 8px; padding: .35em .7em; }
.psf-credit { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; padding-top: 1.3rem; }
.site-info { display: none; }
.storefront-handheld-footer-bar { background: var(--psf-ink); }
.storefront-handheld-footer-bar ul li > a { color: #dbeafe; }
.storefront-handheld-footer-bar ul li.cart .count { background: var(--psf-accent); border-color: var(--psf-ink); color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.psf-card { width: 160px; }
	.psf-card--b { margin-left: -80px; }
}
@media (max-width: 1024px) {
	.psf-cats { grid-template-columns: repeat(3, 1fr); }
	.psf-usp { grid-template-columns: repeat(2, 1fr); }
	.psf-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.psf-home { padding-top: 1rem; }
	.psf-hero { grid-template-columns: 1fr; padding: 2rem 1.4rem 1.6rem; border-radius: 22px; }
	.psf-hero__art { min-height: 260px; }
	.psf-card { width: 118px; padding: 6px 6px 10px; border-radius: 14px; }
	.psf-card img { border-radius: 10px; }
	.psf-card__name { font-size: .7rem; }
	.psf-card__price { font-size: .78rem; }
	.psf-card--a { top: 50px; }
	.psf-card--b { margin-left: -59px; }
	.psf-card--c { top: 56px; }
	.psf-hero__stats { gap: 1.2rem; }
	.psf-usp { grid-template-columns: 1fr; margin-bottom: 2.4rem; }
	.psf-cats { grid-template-columns: 1fr 1fr; }
	.psf-cat { min-height: 160px; }
	.psf-promos { grid-template-columns: 1fr; }
	.psf-promo { grid-template-columns: 1fr; padding: 1.6rem; }
	.psf-promo img { max-width: 60%; justify-self: end; margin-top: -1rem; }
	.psf-emblem { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; }
	.psf-emblem h2 { font-size: 1.55rem; }
	.psf-footer { grid-template-columns: 1fr; }
	.psf-section__head { flex-direction: column; gap: .3rem; }
	.psf-logo__img, .site-header .site-branding img.psf-logo__img { height: 44px; }
	.site-header { padding-top: 1em; }
	ul.products li.product .woocommerce-loop-product__title { min-height: 2.5em; font-size: .85rem; }
	/* Δύο προϊόντα ανά σειρά, όπως στα περισσότερα eshop στο κινητό. */
	.site-main ul.products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.site-main ul.products::before, .site-main ul.products::after { display: none; }
	.site-main ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 8px 8px 12px; }
	ul.products li.product .price { font-size: .92rem; }
	ul.products li.product .button { font-size: .8rem; padding: .7em .5em; }
	.onsale { top: 12px; left: 12px; font-size: .7rem; }
}
