/*
Theme Name: Casa de Textil
Theme URI: https://casadetextil.ro
Author: Casa de Textil
Description: Temă proprie Casa de Textil — editorial / lookbook. Ivoriu cald + negru + teracotă, Playfair Display, povești zig-zag în loc de grile. Suport complet WooCommerce.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: casadetextil
*/

/* =========================================================================
 * DESIGN SYSTEM — editorial
 * ========================================================================= */
:root {
	--cdt-ink: #1B1917;
	--cdt-ink-soft: #3A352F;
	--cdt-text: #302B26;
	--cdt-muted: #837B6E;
	--cdt-paper: #F4F0E8;
	--cdt-paper-2: #E9E2D4;
	--cdt-white: #FFFFFF;
	--cdt-terra: #A85336;
	--cdt-terra-dark: #8A4029;
	--cdt-gold: #B8873F;
	--cdt-line: #DBD3C3;
	--cdt-surface: #ECE5D8;

	--cdt-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--cdt-font-body: 'Inter', Arial, Helvetica, sans-serif;

	--cdt-container: 1300px;
	--cdt-gutter: clamp(20px, 5vw, 64px);
}

/* =========================================================================
 * RESET
 * ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--cdt-font-body); color: var(--cdt-text); background: var(--cdt-paper); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--cdt-font-display); color: var(--cdt-ink); font-weight: 500; line-height: 1.06; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--cdt-terra); color: #fff; }

.cdt-eyebrow { display: inline-block; font-family: var(--cdt-font-body); color: var(--cdt-terra); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; margin-bottom: 18px; }

/* =========================================================================
 * LAYOUT
 * ========================================================================= */
.cdt-container { max-width: var(--cdt-container); margin: 0 auto; padding-left: var(--cdt-gutter); padding-right: var(--cdt-gutter); }
.cdt-section { padding: clamp(48px, 7vw, 110px) 0; }
.cdt-section--paper2 { background: var(--cdt-paper-2); }
.cdt-section--ink { background: var(--cdt-ink); color: #E6E0D5; }
.cdt-section--ink h1, .cdt-section--ink h2, .cdt-section--ink h3 { color: #fff; }

.cdt-grid { display: grid; gap: 28px; }
.cdt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cdt-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .cdt-grid--4 { grid-template-columns: repeat(2, 1fr); } .cdt-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cdt-grid--4, .cdt-grid--3 { grid-template-columns: 1fr; } }

/* =========================================================================
 * BUTOANE
 * ========================================================================= */
.cdt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 34px; font-family: var(--cdt-font-body); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--cdt-ink); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; background: transparent; color: var(--cdt-ink); border-radius: 0; }
.cdt-btn--solid { background: var(--cdt-ink); color: #fff; }
.cdt-btn--solid:hover { background: var(--cdt-terra); border-color: var(--cdt-terra); }
.cdt-btn--terra { background: var(--cdt-terra); border-color: var(--cdt-terra); color: #fff; }
.cdt-btn--terra:hover { background: var(--cdt-terra-dark); border-color: var(--cdt-terra-dark); }
.cdt-btn--outline:hover { background: var(--cdt-ink); color: #fff; }
.cdt-btn--light { border-color: #fff; color: #fff; }
.cdt-btn--light:hover { background: #fff; color: var(--cdt-ink); }
.cdt-btn--link { border: none; padding: 0; text-decoration: none; position: relative; }
.cdt-btn--link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform .25s ease; }
.cdt-btn--link:hover::after { transform: scaleX(0); }

/* =========================================================================
 * STELE RATING
 * ========================================================================= */
.cdt-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--cdt-gold); line-height: 1; }
.cdt-stars svg { width: 14px; height: 14px; fill: var(--cdt-gold); }
.cdt-rating-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--cdt-muted); }
.cdt-rating-inline b { color: var(--cdt-ink); font-weight: 600; }

/* =========================================================================
 * HEADER — minimal, logo centrat
 * ========================================================================= */
.cdt-topbar { background: var(--cdt-ink); color: #C9C1B4; font-size: 12px; letter-spacing: .04em; }
.cdt-topbar .cdt-container { display: flex; align-items: center; justify-content: center; gap: 14px; height: 38px; text-align: center; }
.cdt-topbar .cdt-stars { color: var(--cdt-gold); }
.cdt-topbar-sep { opacity: .4; }

.cdt-header { position: sticky; top: 0; z-index: 500; background: var(--cdt-paper); border-bottom: 1px solid var(--cdt-line); }
.cdt-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 0; gap: 20px; }
.cdt-header-left { display: flex; align-items: center; gap: 20px; }
.cdt-logo { justify-self: center; font-family: var(--cdt-font-display); font-weight: 600; font-size: 1.9rem; color: var(--cdt-ink); letter-spacing: .01em; text-align: center; }
.cdt-logo img { max-height: 44px; width: auto; }

.cdt-header-icons { justify-self: end; display: flex; align-items: center; gap: 20px; }
.cdt-header-icons a, .cdt-header-icons button { display: flex; align-items: center; justify-content: center; position: relative; color: var(--cdt-ink); background: none; border: none; cursor: pointer; width: 26px; height: 26px; padding: 0; }
.cdt-header-icons svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cdt-cart-count, .cdt-wishlist-count { position: absolute; top: -8px; right: -9px; background: var(--cdt-terra); color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; }
.cdt-icon-heart.is-active svg { fill: var(--cdt-terra); stroke: var(--cdt-terra); }

/* nav desktop — sub logo, centrat, uppercase */
.cdt-nav { border-top: 1px solid var(--cdt-line); background: var(--cdt-paper); }
.cdt-nav-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.cdt-nav-backdrop { display: none; }
.cdt-nav ul.menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.cdt-nav ul.menu > li { position: relative; }
.cdt-nav ul.menu > li > a { display: block; padding: 13px 20px; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cdt-ink); }
.cdt-nav ul.menu > li > a:hover { color: var(--cdt-terra); }
.cdt-nav ul.menu ul.sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--cdt-white); border: 1px solid var(--cdt-line); min-width: 230px; padding: 8px; opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease; z-index: 100; display: block; }
.cdt-nav ul.menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cdt-nav ul.menu ul.sub-menu li { width: 100%; }
.cdt-nav ul.menu ul.sub-menu a { display: block; padding: 10px 12px; font-size: .84rem; font-weight: 500; text-transform: none; letter-spacing: normal; }
.cdt-nav ul.menu ul.sub-menu a:hover { background: var(--cdt-paper-2); color: var(--cdt-terra); }
.cdt-nav ul.menu > li.menu-item-has-children > a::after { content: ' \25BE'; font-size: .7em; opacity: .5; }
.cdt-nav-drawer-close { display: none; }

/* hamburger */
.cdt-nav-toggle { display: none; align-items: center; justify-content: center; width: 26px; height: 26px; border: none; background: transparent; cursor: pointer; position: relative; }
.cdt-nav-toggle span, .cdt-nav-toggle span::before, .cdt-nav-toggle span::after { content: ''; display: block; position: absolute; width: 22px; height: 1.5px; background: var(--cdt-ink); transition: transform .2s ease, opacity .2s ease; }
.cdt-nav-toggle span::before { transform: translateY(-7px); }
.cdt-nav-toggle span::after { transform: translateY(7px); }
.cdt-nav-toggle.is-active span { background: transparent; }
.cdt-nav-toggle.is-active span::before { transform: rotate(45deg); }
.cdt-nav-toggle.is-active span::after { transform: rotate(-45deg); }

/* bară căutare (toggle) */
.cdt-search-bar { max-height: 0; overflow: hidden; background: var(--cdt-paper); border-top: 1px solid transparent; transition: max-height .3s ease; }
.cdt-search-bar.is-open { max-height: 120px; border-top-color: var(--cdt-line); }
.cdt-search-bar form { display: flex; padding: 16px 0; gap: 10px; }
.cdt-search-bar input { flex: 1; padding: 13px 18px; border: 1px solid var(--cdt-line); background: #fff; font-size: .95rem; }
.cdt-search-bar button[type="submit"] { border: none; background: var(--cdt-ink); color: #fff; padding: 0 24px; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
	.cdt-topbar .cdt-container { font-size: 11px; gap: 8px; }
	.cdt-header-row { grid-template-columns: auto 1fr auto; padding: 16px 0; }
	.cdt-header-left { gap: 14px; }
	.cdt-logo { font-size: 1.4rem; justify-self: start; }
	.cdt-header-icons { gap: 16px; }
	.cdt-header-icons .cdt-icon-account { display: none; }
	.cdt-nav-toggle { display: inline-flex; }
	.cdt-nav { border-top: none; }
	.cdt-nav-row { display: block; }
	.cdt-nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(27,25,23,.5); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 900; }
	.cdt-nav-backdrop.is-active { opacity: 1; visibility: visible; }
	.cdt-nav ul.menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px); background: var(--cdt-white); flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; padding: 90px 8px 40px; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 950; overflow-y: auto; display: flex; }
	.cdt-nav ul.menu.is-open { transform: translateX(0); }
	.cdt-nav ul.menu > li > a { padding: 16px 18px; border-bottom: 1px solid var(--cdt-line); letter-spacing: .1em; }
	.cdt-nav ul.menu ul.sub-menu { position: static; transform: none; border: none; opacity: 1; visibility: visible; padding: 0 0 0 14px; display: none; }
	.cdt-nav ul.menu li.cdt-submenu-open > ul.sub-menu { display: block; }
	.cdt-nav ul.menu ul.sub-menu a { color: var(--cdt-muted); }
	.cdt-nav-drawer-close { display: flex; align-items: center; justify-content: center; position: fixed; top: 20px; right: max(20px, calc(100vw - min(84vw, 360px) + 16px)); width: 38px; height: 38px; border-radius: 50%; background: var(--cdt-paper-2); border: none; color: var(--cdt-ink); font-size: 1.3rem; cursor: pointer; z-index: 960; opacity: 0; visibility: hidden; transition: opacity .2s ease .1s; }
	.cdt-nav-drawer-close.is-visible { opacity: 1; visibility: visible; }
}

/* =========================================================================
 * HERO — cover de revistă
 * ========================================================================= */
.cdt-hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden; }
.cdt-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cdt-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,25,23,.66) 0%, rgba(27,25,23,.15) 42%, rgba(27,25,23,.28) 100%); }
.cdt-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--cdt-container); margin: 0 auto; padding: 0 var(--cdt-gutter) clamp(44px, 6vw, 90px); }
.cdt-hero-issue { color: rgba(255,255,255,.85); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.cdt-hero-issue::after { content: ''; height: 1px; width: 60px; background: rgba(255,255,255,.5); }
.cdt-hero h1 { color: #fff; max-width: 14ch; margin-bottom: .25em; }
.cdt-hero-sub { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 46ch; margin-bottom: 26px; }
.cdt-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cdt-hero-rating { color: #fff; font-size: .86rem; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 700px) { .cdt-hero { min-height: 78vh; } }

/* =========================================================================
 * STORY ROWS — zig-zag editorial (structura principală)
 * ========================================================================= */
.cdt-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.cdt-story-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--cdt-surface); }
.cdt-story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.cdt-story:hover .cdt-story-media img { transform: scale(1.04); }
.cdt-story-text { padding: clamp(30px, 6vw, 96px); }
.cdt-story-index { font-family: var(--cdt-font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cdt-terra); font-weight: 600; display: block; margin-bottom: 18px; }
.cdt-story-text h2 { margin-bottom: .28em; }
.cdt-story-text p { color: var(--cdt-muted); max-width: 42ch; font-size: 1.04rem; margin-bottom: 26px; }
.cdt-story--rev .cdt-story-media { order: 2; }
.cdt-story--alt { background: var(--cdt-paper-2); }
@media (max-width: 860px) {
	.cdt-story { grid-template-columns: 1fr; }
	.cdt-story--rev .cdt-story-media { order: 0; }
	.cdt-story-media { aspect-ratio: 3/2; }
	.cdt-story-text { padding: 40px var(--cdt-gutter) 56px; }
}

/* =========================================================================
 * SPOTLIGHT PRODUS
 * ========================================================================= */
.cdt-spotlight { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.cdt-spotlight-media { aspect-ratio: 1/1; overflow: hidden; background: var(--cdt-surface); }
.cdt-spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.cdt-spotlight-text h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); margin-bottom: .2em; }
.cdt-spotlight-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cdt-spotlight-price { font-family: var(--cdt-font-display); font-size: 1.8rem; color: var(--cdt-ink); margin-bottom: 18px; }
.cdt-spotlight-price del { color: var(--cdt-muted); font-size: 1.2rem; margin-right: 10px; }
.cdt-spotlight-price ins { text-decoration: none; color: var(--cdt-terra); }
.cdt-spotlight-text p { color: var(--cdt-muted); max-width: 44ch; margin-bottom: 26px; }
@media (max-width: 860px) { .cdt-spotlight { grid-template-columns: 1fr; } }

/* =========================================================================
 * SOCIAL PROOF — moment editorial mare (pull-quote)
 * ========================================================================= */
.cdt-proof { text-align: center; }
.cdt-proof-stat { font-family: var(--cdt-font-display); font-size: clamp(4rem, 12vw, 9rem); line-height: .9; color: #fff; margin-bottom: 6px; }
.cdt-proof-label { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: #B8B0A2; margin-bottom: 40px; }
.cdt-proof-quote { font-family: var(--cdt-font-display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.3; color: #fff; max-width: 20ch; margin: 0 auto 20px; font-style: italic; }
.cdt-proof-cite { color: #B8B0A2; font-size: .88rem; letter-spacing: .04em; }
.cdt-proof-stars { justify-content: center; margin-bottom: 30px; display: flex; }
.cdt-proof-stars .cdt-stars svg { width: 20px; height: 20px; }

/* =========================================================================
 * GARANȚII — bandă subțire editorială
 * ========================================================================= */
.cdt-assur { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 40px; text-align: center; }
.cdt-assur span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cdt-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.cdt-assur span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cdt-terra); }

/* =========================================================================
 * FAQ
 * ========================================================================= */
.cdt-faq-item { border-bottom: 1px solid var(--cdt-line); padding: 22px 0; }
.cdt-faq-item h3 { font-family: var(--cdt-font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.cdt-faq-item p { color: var(--cdt-muted); margin: 0; }

.cdt-section-head { text-align: center; margin-bottom: 46px; }

/* =========================================================================
 * PRODUCT CARD (folosit pe arhive/spotlight rails)
 * ========================================================================= */
.cdt-product-card { position: relative; display: block; }
.cdt-product-card .cdt-pc-img { aspect-ratio: 4/5; overflow: hidden; background: var(--cdt-surface); position: relative; }
.cdt-product-card .cdt-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cdt-product-card:hover .cdt-pc-img img { transform: scale(1.04); }
.cdt-product-card .cdt-pc-body { padding: 16px 2px 0; }
.cdt-product-card .cdt-pc-title { font-family: var(--cdt-font-display); font-size: 1.14rem; font-weight: 500; color: var(--cdt-ink); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.cdt-product-card .cdt-pc-rating { margin-bottom: 6px; }
.cdt-product-card .cdt-pc-price { font-weight: 600; color: var(--cdt-ink); font-size: .98rem; }
.cdt-product-card .cdt-pc-price del { color: var(--cdt-muted); font-weight: 400; margin-right: 7px; font-size: .86rem; }
.cdt-product-card .cdt-pc-price ins { text-decoration: none; color: var(--cdt-terra); }
.cdt-badge { position: absolute; top: 14px; left: 14px; background: var(--cdt-ink); color: #fff; font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 6px 12px; z-index: 2; }
.cdt-wishlist-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--cdt-ink); }
.cdt-wishlist-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cdt-wishlist-btn.is-active svg { fill: var(--cdt-terra); stroke: var(--cdt-terra); }

.cdt-breadcrumb { font-size: .82rem; color: var(--cdt-muted); margin-bottom: 22px; letter-spacing: .02em; }
.cdt-breadcrumb a:hover { color: var(--cdt-terra); }

/* =========================================================================
 * WOOCOMMERCE — grile produse
 * ========================================================================= */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; list-style: none; padding: 0; }
.woocommerce ul.products li.product { list-style: none; position: relative; padding: 0 !important; background: transparent; border: none; }
@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 0 !important; margin: 0 !important; background: var(--cdt-surface); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--cdt-font-display); font-weight: 500; font-size: 1.14rem; color: var(--cdt-ink); padding: 15px 2px 4px; margin: 0; }
.woocommerce ul.products li.product .star-rating { margin: 4px 2px; font-size: .78rem; color: var(--cdt-gold); }
.woocommerce ul.products li.product .price { padding: 2px 2px 12px; display: block; font-weight: 600; color: var(--cdt-ink); font-size: .98rem; }
.woocommerce ul.products li.product .price del { color: var(--cdt-muted); font-weight: 400; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--cdt-terra); }
.woocommerce ul.products li.product .button { margin: 0 2px !important; width: calc(100% - 4px); }

.woocommerce span.onsale {
	position: absolute !important; top: 14px !important; left: 14px !important; right: auto !important;
	background: var(--cdt-ink) !important; color: #fff !important; border: none !important; border-radius: 0 !important;
	min-width: 0 !important; min-height: 0 !important; width: auto !important; height: auto !important;
	padding: 6px 12px !important; margin: 0 !important; font-size: .64rem !important; font-weight: 600 !important;
	text-transform: uppercase; letter-spacing: .1em; line-height: 1.2 !important; white-space: nowrap; z-index: 2;
}

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce-page a.button {
	background: var(--cdt-ink) !important; color: #fff !important; border-radius: 0 !important; font-weight: 600 !important;
	text-transform: uppercase !important; letter-spacing: .08em !important; font-size: .8rem !important; border: none !important;
	padding: 14px 24px !important; transition: background-color .2s ease; font-family: var(--cdt-font-body) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--cdt-terra) !important; }

/* single product */
.cdt-single-product { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: flex-start; }
@media (max-width: 900px) { .cdt-single-product { grid-template-columns: 1fr; gap: 28px; } }
.cdt-single-gallery { position: relative; background: var(--cdt-surface); overflow: hidden; }
.cdt-single-summary .product_title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .2em; }
.cdt-single-summary .price { font-family: var(--cdt-font-display); font-size: 1.7rem; font-weight: 500; color: var(--cdt-ink); }
.cdt-single-summary .price del { font-size: 1.15rem; color: var(--cdt-muted); font-weight: 400; margin-right: 8px; }
.cdt-single-summary .price ins { text-decoration: none; color: var(--cdt-terra); }
.cdt-single-summary .woocommerce-product-rating { margin-bottom: 14px; }

.woocommerce-product-details__short-description ul { margin: 20px 0; }
.woocommerce-product-details__short-description ul li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .95rem; list-style: none; }
.woocommerce-product-details__short-description ul li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--cdt-terra); }
.woocommerce-product-details__short-description ul li::after { content: '✓'; position: absolute; left: 5px; top: 0; color: #fff; font-size: .72rem; font-weight: 700; }

table.variations { width: 100%; border-collapse: collapse; margin: 16px 0; }
table.variations tr { display: block; margin-bottom: 10px; }
table.variations td, table.variations th { display: block; border: none; padding: 0; }
.variations select { width: 100%; padding: 13px 14px; border: 1px solid var(--cdt-line); font-size: .95rem; background: #fff; }
.single_add_to_cart_button { font-size: .95rem !important; padding: 17px 30px !important; }

/* =========================================================================
 * WOOCOMMERCE — coș / checkout / cont
 * ========================================================================= */
.woocommerce table.shop_table, .woocommerce-page table.shop_table { border: 1px solid var(--cdt-line); border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%; background: var(--cdt-white); }
.woocommerce table.shop_table th { background: var(--cdt-paper-2); font-weight: 600; text-align: left; padding: 15px 16px; color: var(--cdt-ink); font-family: var(--cdt-font-body); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.woocommerce table.shop_table td { padding: 16px; border-top: 1px solid var(--cdt-line); vertical-align: middle; }
.woocommerce table.shop_table td.product-thumbnail img { width: 72px; background: var(--cdt-surface); }
.woocommerce table.shop_table td.product-name a { font-weight: 500; color: var(--cdt-ink); font-family: var(--cdt-font-display); font-size: 1.05rem; }
.woocommerce table.shop_table td.product-remove a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cdt-paper-2) !important; color: var(--cdt-ink) !important; font-weight: 700; }
.woocommerce table.shop_table td.product-remove a:hover { background: var(--cdt-terra) !important; color: #fff !important; }

.woocommerce div.quantity .qty, .woocommerce input.input-text, .woocommerce select, .woocommerce textarea { border: 1px solid var(--cdt-line); border-radius: 0; padding: 12px 14px; font-size: .95rem; background: #fff; }
.woocommerce div.quantity .qty { width: 66px; padding: 12px 8px; text-align: center; }

.woocommerce-cart-form .coupon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce-cart-form .coupon .input-text { max-width: 220px; }
.woocommerce-cart-form table.shop_table { margin-bottom: 24px; }

.cart_totals, .woocommerce-checkout-review-order { background: var(--cdt-white); border: 1px solid var(--cdt-line); padding: 28px; }
.cart_totals table.shop_table, .woocommerce-checkout-review-order-table { background: transparent; border: none; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td, .woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { background: transparent; border-top: 1px solid var(--cdt-line); text-transform: none; letter-spacing: normal; font-size: inherit; }
.cart_totals .order-total .amount, .woocommerce-checkout-review-order-table .order-total .amount { font-weight: 600; font-size: 1.3rem; color: var(--cdt-terra); font-family: var(--cdt-font-display); }
.wc-proceed-to-checkout a.checkout-button { width: 100%; text-align: center; margin-top: 16px; }

.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 6px; color: var(--cdt-ink); }
.woocommerce-checkout #payment { background: var(--cdt-white); border: 1px solid var(--cdt-line); padding: 4px 20px; margin-top: 20px; }
.woocommerce-checkout #payment div.payment_box { background: var(--cdt-paper-2); }
#place_order { width: 100%; padding: 18px 24px !important; font-size: .9rem !important; }

.woocommerce-MyAccount-navigation ul { border: 1px solid var(--cdt-line); overflow: hidden; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--cdt-line); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 13px 18px; font-weight: 600; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--cdt-ink); color: #fff !important; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--cdt-paper-2); }
@media (min-width: 782px) { .woocommerce-account .woocommerce-MyAccount-navigation { float: left; width: 26%; } .woocommerce-account .woocommerce-MyAccount-content { float: right; width: 70%; } }

.woocommerce-form-login, .woocommerce-form-register { border: 1px solid var(--cdt-line); padding: 28px; background: var(--cdt-white); }
.woocommerce-notice, .woocommerce-message, .woocommerce-error, .woocommerce-info { border-radius: 0 !important; padding: 14px 18px !important; border-top-color: var(--cdt-terra) !important; }

/* =========================================================================
 * FOOTER
 * ========================================================================= */
.cdt-footer { background: var(--cdt-ink); color: #B7AFA1; }
.cdt-footer a:hover { color: #fff; }
.cdt-footer-top { padding: 66px 0 44px; }
.cdt-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.cdt-footer-brand { font-family: var(--cdt-font-display); font-size: 1.7rem; color: #fff; margin-bottom: 14px; }
.cdt-footer-cols h4 { color: #fff; font-family: var(--cdt-font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 18px; }
.cdt-footer-cols li { margin-bottom: 11px; font-size: .92rem; }
.cdt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #857D70; }
@media (max-width: 900px) { .cdt-footer-cols { grid-template-columns: 1fr 1fr; } }

.cdt-page-content.cdt-page-content--wide { max-width: none !important; }
