/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/*
 * Testo bianco/grigio chiaro nei widget del footer (sfondo scuro).
 * OceanWP eredita il colore testo di default (scuro) nei widget: su sfondo
 * scuro risulta illeggibile, va forzato via CSS.
 */
#footer-widgets .widget-title,
#footer-widgets h1,
#footer-widgets h2,
#footer-widgets h3,
#footer-widgets h4,
#footer-widgets h5,
#footer-widgets h6 {
	color: #ffffff;
}

#footer-widgets,
#footer-widgets p,
#footer-widgets li,
#footer-widgets span,
#footer-widgets address {
	color: #cfcfcf;
}

#footer-widgets a {
	color: #cfcfcf;
}

#footer-widgets a:hover,
#footer-widgets a:focus {
	color: #e07a1f;
}

/*
 * Icona carrello nel menu header (desktop): il testo prezzo ("0,00 €") allarga
 * troppo la voce di menu, il totale (logo + voci menu + carrello) supera la
 * larghezza disponibile e il carrello va a capo, uscendo fuori dall'header.
 * Si nasconde il prezzo e si tiene solo icona + badge quantità (il prezzo resta
 * comunque visibile aprendo la tendina del mini-carrello).
 */
@media (min-width: 960px) {
	.main-navigation .wcmenucart .woocommerce-Price-wcmenucart-details {
		display: none;
	}

	.main-navigation .wcmenucart {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/*
 * Header sticky (desktop + mobile): resta visibile durante lo scroll.
 * OceanWP ha uno "Sticky Header" solo tramite plugin a parte (Ocean Sticky
 * Header, non installato): con CSS puro non serve installare nulla.
 */
#site-header {
	position: sticky;
	top: 0;
	z-index: 999;
}

/*
 * Icona di ricerca nel menu header: contribuiva all'overflow della barra
 * (assieme al carrello, vedi sopra) e finiva per andare a capo sotto
 * l'header invece che restarci dentro. Rimossa su richiesta.
 */
#site-header .search-toggle-li {
	display: none !important;
}

/*
 * Riepilogo personalizzazione nel carrello: anteprima design più grande e
 * cliccabile (ingrandisce in un tab a parte), dettagli come card leggibile
 * invece di un'unica riga di testo con "/" come separatore.
 */
.shopper-cart-thumb-link {
	display: block;
	width: 100%;
	max-width: 110px;
}

.shopper-cart-thumb {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: zoom-in;
	transition: transform 0.15s ease;
}

.shopper-cart-thumb-link:hover .shopper-cart-thumb {
	transform: scale(1.03);
}

.woocommerce-cart-form .product-name dl.variation,
.woocommerce-checkout-review-order-table dl.variation,
.woocommerce-order-details dl.variation {
	display: block;
	margin: 10px 0 0;
	padding: 10px 14px;
	background: #f7f7f7;
	border-radius: 10px;
	border: 1px solid #ececec;
}

.product-name dl.variation dt,
.woocommerce-checkout-review-order-table dl.variation dt,
.woocommerce-order-details dl.variation dt {
	display: inline-block;
	float: none;
	clear: none;
	margin: 0 4px 0 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #999;
}

.product-name dl.variation dd,
.woocommerce-checkout-review-order-table dl.variation dd,
.woocommerce-order-details dl.variation dd {
	display: inline-block;
	float: none;
	margin: 0 0 6px;
	font-size: 14px;
	color: #1f1f1f;
}

.product-name dl.variation dt::after {
	content: ':';
}

.product-name dl.variation {
	line-height: 1.7;
}

.product-name dl.variation dt,
.product-name dl.variation dd {
	width: 100%;
}


/* Header: logo a sinistra, menu centrato, carrello e account a destra. */
.shopper-header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    z-index: 102;
}

.shopper-header-account a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 74px;
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.shopper-header-account a:hover,
.shopper-header-account a:focus-visible {
    color: #ff6a00;
    background-color: rgba(255, 106, 0, 0.06);
    outline: none;
}

.shopper-header-account .icon-user,
.shopper-header-account .owp-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

@media (min-width: 1281px) {
    #site-header-inner {
        display: grid !important;
        grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
        align-items: center;
    }

    #site-header-inner::before,
    #site-header-inner::after {
        display: none;
    }

    #site-logo {
        grid-column: 1;
        grid-row: 1;
        float: none !important;
        justify-self: start;
    }

    #site-navigation-wrap {
        grid-column: 2;
        grid-row: 1;
        position: static !important;
        left: auto !important;
        right: auto !important;
        float: none !important;
        width: max-content !important;
        transform: none !important;
        justify-self: center;
    }

    #site-navigation,
    #site-navigation .dropdown-menu {
        position: static !important;
    }

    #site-navigation .dropdown-menu > .woo-menu-icon {
        position: absolute !important;
        top: 0;
        right: 44px;
        margin: 0;
    }

    .shopper-header-account {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
}

@media (max-width: 1280px) {
    .shopper-header-account {
        position: absolute;
        top: 0;
        right: 181px;
    }

    .shopper-header-account a {
        width: 42px;
        height: 76px;
    }
}



@media (min-width: 1281px) {
    #site-header-inner {
        width: 100% !important;
        max-width: none !important;
    }

    #site-logo {
        margin-left: 56px;
    }

    #site-navigation .dropdown-menu > .woo-menu-icon {
        right: 56px;
    }

    .shopper-header-account {
        margin-right: 135px;
    }
}
