/*
Theme Name: AdamEve Doll Child
Description: Blocksy child theme for en.adamevedoll.com — prototype port: product card hover image swap (Blocksy native swap + prototype timing), button hover states, header logo sizing.
Author: AED
Template: blocksy
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: blocksy-child
*/

/* ------------------------------------------------------------------
   1) PRODUCT CARD HOVER — prototype parity (prototype/shop.html)
   Reverse-engineered from the prototype:
   - crossfade: opacity .3s ease (Blocksy default is .5s — overridden)
   - image zoom on card hover: scale(1.045), transform .8s
     cubic-bezier(.2, .7, .2, 1)
   - media radius 18px + overflow hidden; NO card shadow/translate on
     hover (prototype has none — do not add)
   Blocksy native swap renders img.ct-swap inside .has-hover-effect
   (opacity 0 -> 1 on hover, gated by @media(hover:hover) upstream, so
   touch devices keep the primary image; cards without a 2nd gallery
   image simply render no .ct-swap element).
   ------------------------------------------------------------------ */

[data-products] figure .has-hover-effect img {
	transition:
		opacity .3s ease,
		transform .8s cubic-bezier(.2, .7, .2, 1);
}

/* prototype: .pimg { border-radius: 18px; overflow: hidden; } */
[data-products] figure .ct-media-container {
	border-radius: 18px;
	overflow: hidden;
}

@media (hover: hover) {
	/* prototype: .pcard:hover .pimg img { transform: scale(1.045) } */
	[data-products] li.product:hover figure .has-hover-effect img {
		transform: scale(1.045);
	}
}

/* ------------------------------------------------------------------
   2) BUTTONS — prototype: .btn { transition: all .3s ease }
   primary (wine) hover: background #6E1F2E (wine-deep), text stays #fff.
   Overrides Blocksy's default gold hover on body scope so the var wins
   over the :root declaration in dynamic CSS regardless of load order.
   ------------------------------------------------------------------ */
body {
	--theme-button-background-hover-color: #6E1F2E;
	--theme-button-text-hover-color: #ffffff;
}

.button,
.added_to_cart,
.ct-button,
[type="submit"] {
	transition:
		background-color .3s ease,
		color .3s ease,
		border-color .3s ease;
}

/* ------------------------------------------------------------------
   3) HEADER LOGO — prototype: .nav .logo img { height: 44px; width: auto }
   Blocksy: .site-logo-container height = var(--logo-max-height, 50px)
   ------------------------------------------------------------------ */
[data-id="logo"] .site-logo-container {
	--logo-max-height: 44px;
}

/* AED spec table -----------------------------------------------------
   Product description spec-sheet rendering (badge + two-column table).
   Gated by body.aed-spec-on, which functions.php adds ONLY on product
   pages while option aed_spec_table_enabled = '1' — zero effect on any
   other page or while the toggle is off.
   ------------------------------------------------------------------ */
body.aed-spec-on .aed-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

body.aed-spec-on .aed-badge {
	display: inline-block;
	padding: 0.3em 0.85em;
	border: 1px solid #8E2A3C;
	border-radius: 6px;
	background: rgba(142, 42, 60, 0.06);
	color: #8E2A3C;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

body.aed-spec-on table.aed-spec-table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-family: Inter, var(--theme-font-family, inherit);
	font-size: 0.95em;
	line-height: var(--theme-line-height, 1.6);
}

body.aed-spec-on .aed-spec-table td {
	padding: 0.65em 0.9em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
	text-align: start;
}

body.aed-spec-on .aed-spec-table tr:last-child td {
	border-bottom: 0;
}

body.aed-spec-on .aed-spec-table td.aed-label {
	width: 35%;
	background: #FAF8F5;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.72);
}

body.aed-spec-on .aed-spec-table td.aed-value {
	width: 65%;
}

body.aed-spec-on .aed-value-empty {
	color: rgba(0, 0, 0, 0.4);
}

/* long-value rows: label stacked narrow above a full-width value */
body.aed-spec-on .aed-row-wide > td {
	background: transparent;
}

body.aed-spec-on .aed-wide-label {
	display: block;
	margin: 0.15em 0 0.25em;
	font-size: 0.85em;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.55);
}

body.aed-spec-on .aed-wide-value {
	display: block;
}

@media (max-width: 768px) {
	body.aed-spec-on table.aed-spec-table {
		font-size: 0.9em;
	}

	body.aed-spec-on .aed-spec-table td {
		padding: 0.55em 0.7em;
	}

	body.aed-spec-on .aed-spec-table td.aed-label {
		width: 40%;
	}
}

/* AED sticky header (2026-11-13) */
#header { position: sticky; top: 0; z-index: 999; }
body.admin-bar #header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #header { top: 46px; } }


/* AED nav font size (2026-11-13) */
#header .menu > li > a { font-size: 16px; letter-spacing: .01em; }
#header .menu .sub-menu > li > a { font-size: 15px; }
@media (max-width: 999px) {
  #header .menu > li > a,
  .mobile-menu .menu > li > a,
  .ct-panel .menu > li > a { font-size: 17px; }
}

