/* YOSRIT eStore storefront */
.yes-app {
	--accent: #a86a45;        /* brand clay (deep) - buttons, active, accents */
	--accent-d: #895332;      /* hover / pressed */
	--accent-soft: #f6eee4;   /* warm tint background */
	--brown: #423629;         /* headings */
	--cream: #fbf6ee;         /* panel background */
	--line: #e8ddcf;          /* warm hairline */
	--line-soft: #f0e8dc;
	--ink: #3a2f28;           /* body text */
	--ok: #2f7d43;            /* savings / positive */
	--danger: #b23a2e;
	--shadow: 0 1px 2px rgba(66,54,41,.05), 0 6px 20px rgba(66,54,41,.07);
	--shadow-sm: 0 1px 2px rgba(66,54,41,.06), 0 2px 8px rgba(66,54,41,.05);
	max-width: 1100px; margin: 0 auto; font-size: 15px; line-height: 1.55; color: var(--ink);
}
.yes-app { box-sizing: border-box; padding: 0 16px; }  /* own side gutters (theme page is full-width) */
.yes-app > *:first-child { margin-top: 0; }            /* no stray white gap above the header */
.yes-app * { box-sizing: border-box; }
.yes-app button { cursor: pointer; font: inherit; }
.yes-app h2, .yes-app h3, .yes-app h4 { color: var(--brown); }

/*
 * Host themes (e.g. Astra) style bare <button>/<input>/<select> globally,
 * often with !important on color/background. Every control below states
 * its own color and background explicitly, matching that specificity, so
 * the theme can't leave text invisible or push it out of a fixed-height box.
 */
.yes-app button,
.yes-app input,
.yes-app select,
.yes-app textarea {
	font-family: inherit;
	line-height: normal;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s, color .15s, transform .1s;
}
.yes-app input:focus,
.yes-app select:focus,
.yes-app textarea:focus {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px rgba(168,106,69,.16) !important;
	outline: none;
}

.yes-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 2px solid var(--accent); margin-bottom: 22px; }
.yes-header-brand { display: flex; flex-direction: column; gap: 3px; }
.yes-kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.yes-wordmark { font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; font-size: 36px; font-weight: 600; line-height: .95; color: var(--brown); letter-spacing: .01em; }
.yes-header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 6px; justify-content: flex-end; }
.yes-vat button { font-size: 12px !important; border: 1px solid var(--line); background: #fff !important; color: #6b5d4f !important; padding: 3px 10px; border-radius: 99px; }
.yes-lang button { border: 1px solid var(--line); background: #fff !important; color: #6b5d4f !important; padding: 3px 10px; border-radius: 99px 0 0 99px; }
.yes-lang button + button { border-radius: 0 99px 99px 0; border-left: 0; }
.yes-lang button.on { background: var(--accent) !important; color: #fff !important; border-color: var(--accent); }
.yes-cart-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--brown); font-weight: 600; }

.yes-banner { background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent-d); padding: 9px 14px; border-radius: 10px; margin-bottom: 12px; }
.yes-banner.warn { background: #fdf3e6; border-color: #f0d4a8; color: #8a5a12; }
.yes-promos { background: #f2f7ee; border: 1px solid #d7e6c9; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.yes-promos-title { display: inline-block; font-weight: 700; color: #3a6b2f; margin-right: 10px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.yes-promos ul { display: inline; margin: 0; padding: 0; list-style: none; }
.yes-promos li { display: inline-block; background: #fff; border: 1px solid #d7e6c9; color: #3a6b2f; border-radius: 999px; padding: 4px 13px; margin: 3px 6px 3px 0; font-size: 13px; font-weight: 600; }

.yes-genders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.yes-gender { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff !important; color: #6b5d4f !important; box-shadow: var(--shadow-sm); }
.yes-gender:hover { border-color: var(--accent); color: var(--accent) !important; }
.yes-gender.on { border: 2px solid var(--accent); color: var(--accent) !important; font-weight: 600; background: var(--accent-soft) !important; }

.yes-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 16px; }
.yes-subcat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff !important; color: #6b5d4f !important; font-size: 12px; cursor: pointer; }
.yes-subcat svg { width: 22px; height: 22px; }
.yes-subcat.on { border: 2px solid var(--accent); color: var(--accent) !important; font-weight: 600; background: var(--accent-soft) !important; }

.yes-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; }
.yes-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.yes-filters-head h4 { margin: 0; }
.yes-clear-filters { border: 1px solid var(--line); background: #fff !important; color: var(--accent) !important; border-radius: 8px; padding: 3px 10px; font-size: 12px !important; }
.yes-filters h4 { margin: 0 0 8px; }
.yes-filters h5 { margin: 14px 0 6px; color: #6b5d4f; }
.yes-fgroup label { display: block; font-size: 14px; margin: 3px 0; }
.yes-search { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff !important; color: var(--ink) !important; font-size: 14px !important; }
.yes-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.yes-chip { border: 1px solid var(--line); background: #fff !important; color: #6b5d4f !important; border-radius: 99px; padding: 3px 11px; font-size: 13px !important; }
.yes-chip.on { background: var(--accent) !important; border-color: var(--accent); color: #fff !important; }

.yes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; align-content: start; }
.yes-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s; }
.yes-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line); }
.yes-card-img { background: var(--cream); border-radius: 10px; height: 172px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.yes-card-img img { width: 100%; height: 100%; object-fit: cover; }
.yes-card-title { font-size: 13.5px; line-height: 1.35; min-height: 36px; cursor: pointer; color: var(--brown); }
.yes-card-meta { font-size: 12px; color: #9b8c7c; }
.yes-card-price { font-weight: 700; color: var(--brown); }
.yes-card-price small { font-weight: 400; color: #9b8c7c; font-size: 11px; }
.yes-size-select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff !important; color: var(--ink) !important; font-size: 13px !important; }

.yes-qty { display: flex; align-items: center; gap: 4px; }
.yes-qty button {
	width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px;
	background: #fff !important; color: var(--brown) !important;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 !important; font-size: 16px !important; line-height: 1 !important;
}
.yes-qty button:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-soft) !important; }
.yes-qty input {
	width: 56px; height: 30px; text-align: center; border: 1px solid var(--line); border-radius: 8px;
	background: #fff !important; color: var(--ink) !important;
	padding: 0 !important; font-size: 13px !important; line-height: 28px !important;
}
.yes-qty.sm input { width: 50px; }
.yes-qty input::-webkit-inner-spin-button { opacity: 1; }

.yes-add { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); color: var(--accent) !important; background: #fff !important; border-radius: 10px; padding: 8px; font-weight: 600; }
.yes-add:hover { background: var(--accent-soft) !important; }
.yes-add.yes-added { background: var(--accent) !important; color: #fff !important; }
.yes-add.yes-oos, .yes-add:disabled { border-color: var(--line); color: #b6a996 !important; background: #f6f2ec !important; cursor: not-allowed; }
.yes-card-err { color: var(--danger); font-size: 12px; line-height: 1.4; }

.yes-pager { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.yes-pager-info { color: #9b8c7c; font-size: 13px; }
.yes-pager-pages { display: inline-flex; align-items: center; gap: 5px; }
.yes-page-btn { min-width: 34px; height: 34px; padding: 0 8px !important; border: 1px solid var(--line); border-radius: 10px; background: #fff !important; color: #6b5d4f !important; font-size: 14px !important; display: inline-flex; align-items: center; justify-content: center; }
.yes-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-soft) !important; }
.yes-page-btn.on { background: var(--accent) !important; border-color: var(--accent); color: #fff !important; font-weight: 600; }
.yes-page-arrow:disabled { color: #cfc4b4 !important; cursor: default; }
.yes-pager-dots { color: #9b8c7c; padding: 0 2px; }

.yes-empty { color: #9b8c7c; padding: 30px 0; }
.yes-muted { color: #9b8c7c; font-size: 13px; }
.yes-err { color: var(--danger); margin-top: 6px; }
.good { color: var(--ok); }
.yes-loading { padding: 40px; text-align: center; color: #b6a996; }
.yes-h2 { margin: 0 0 16px; font-size: 26px; font-weight: 700; color: var(--brown); letter-spacing: -.01em; }

.yes-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.yes-table th { text-align: left; color: #9b8c7c; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--line); padding: 8px 8px; }
.yes-table td { border-bottom: 1px solid var(--line-soft); padding: 11px 8px; vertical-align: middle; }
.yes-table tbody tr:hover { background: var(--cream); }
.yes-timg img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.yes-del { border: 0; background: none !important; color: var(--danger) !important; font-size: 17px; border-radius: 6px; padding: 4px; }
.yes-del:hover { background: #fbeae7 !important; }

.yes-totals { width: fit-content; min-width: 280px; margin: 18px 0 18px auto; display: flex; flex-direction: column; align-items: stretch; gap: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.yes-totals > div { display: flex; justify-content: space-between; gap: 24px; }
.yes-total-line { font-size: 19px; font-weight: 700; color: var(--brown); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.yes-totals .yes-btn { margin-top: 12px; }

.yes-btn { display: inline-block; border: 1px solid var(--line); background: #fff !important; border-radius: 10px; padding: 10px 20px; text-decoration: none; color: var(--brown) !important; font-weight: 600; font-size: 14px; line-height: normal; transition: transform .1s, box-shadow .15s, background-color .15s; }
.yes-btn:hover { box-shadow: var(--shadow-sm); }
.yes-btn.primary { background: var(--accent) !important; border-color: var(--accent); color: #fff !important; box-shadow: 0 2px 8px rgba(168,106,69,.28); }
.yes-btn.primary:hover { background: var(--accent-d) !important; border-color: var(--accent-d); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(168,106,69,.32); }
.yes-btn.primary:disabled { background: #cbb9a6 !important; border-color: #cbb9a6; cursor: not-allowed; box-shadow: none; transform: none; }
.yes-btn.danger { border-color: var(--danger); color: var(--danger) !important; }
.yes-btn.danger:hover { background: #fbeae7 !important; }

.yes-checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.yes-co-form h4, .yes-co-summary h4 { margin: 20px 0 10px; font-size: 15px; padding-left: 11px; position: relative; }
.yes-co-form h4::before, .yes-co-summary h4::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; border-radius: 3px; background: var(--accent); }
.yes-co-form h4:first-child { margin-top: 0; }
.yes-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.yes-toggle button { border: 1px solid var(--line); background: #fff !important; color: #6b5d4f !important; border-radius: 99px; padding: 6px 18px; font-size: 13px !important; }
.yes-toggle button:hover { border-color: var(--accent); color: var(--accent) !important; }
.yes-toggle button.on { border: 1.5px solid var(--accent); color: var(--accent) !important; font-weight: 600; background: var(--accent-soft) !important; }
.yes-field { display: block; margin: 10px 0; }
.yes-field span { display: block; font-size: 12.5px; color: #6b5d4f; margin-bottom: 4px; font-weight: 500; }
.yes-field input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff !important; color: var(--ink) !important; font-size: 14px !important; }
.yes-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yes-pickup-box { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.yes-vat-note { background: #fdf3e6; border: 1px solid #f0d4a8; color: #8a5a12; padding: 9px 13px; border-radius: 9px; margin: 8px 0; font-size: 13px; }
.yes-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.yes-voucher-row { display: flex; gap: 8px; }
.yes-voucher-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff !important; color: var(--ink) !important; font-size: 14px !important; }

.yes-co-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; align-self: start; position: sticky; top: 20px; box-shadow: var(--shadow); }
.yes-co-summary h4:first-child { margin-top: 0; }
.yes-sum-items { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: #6b5d4f; }
.yes-sum-items li { margin: 2px 0; }
.yes-sum-lines { border-top: 1px solid var(--line); padding-top: 12px; }
.yes-sum-lines div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.yes-sum-lines .yes-total-line { width: auto; min-width: 0; margin: 8px 0 0; padding: 12px 0 0; background: none; border: none; border-top: 2px solid var(--line); box-shadow: none; border-radius: 0; font-size: 20px; }
.yes-bank-note { background: var(--accent-soft); color: var(--accent-d); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 13px; margin: 16px 0; line-height: 1.5; }
.yes-co-summary .yes-btn { width: 100%; text-align: center; padding: 12px; font-size: 15px; }

.yes-success { text-align: center; padding: 48px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.yes-success h2 { font-size: 26px; margin-bottom: 8px; }

.yes-track-form { max-width: 440px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.yes-track-form .yes-btn { margin-top: 12px; width: 100%; text-align: center; }
.yes-order { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.yes-order-main, .yes-order-msgs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.yes-order-main h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.yes-order-num { font-weight: 700; color: var(--brown); }
.yes-order-date { font-size: 13px; color: #9b8c7c; font-weight: 400; }
.yes-status { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 11px; border-radius: 99px; }
.yes-status-open { background: #e7f1e9; color: #2f7d43; }
.yes-status-finalized { background: var(--accent-soft); color: var(--accent-d); }
.yes-status-cancelled { background: #fbeae7; color: var(--danger); }
.yes-order-main h4 { margin: 18px 0 8px; }
.yes-files { padding-left: 18px; }
.yes-files li { margin: 4px 0; }
.yes-msg-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.yes-msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; max-width: 88%; align-self: flex-start; font-size: 14px; box-shadow: var(--shadow-sm); }
.yes-msg.mine { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: #fff; }
.yes-msg small { display: block; color: #9b8c7c; font-size: 11px; margin-top: 3px; }
.yes-msg.mine small { color: rgba(255,255,255,.75); }
.yes-msg-form { display: flex; gap: 8px; margin-top: 12px; }
.yes-msg-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font: inherit; background: #fff !important; color: var(--ink) !important; }

.yes-modal-bg { position: fixed; inset: 0; background: rgba(45,36,28,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.yes-modal { background: #fff; border-radius: 16px; max-width: 960px; width: 100%; max-height: 88vh; overflow: auto; padding: 22px; position: relative; box-shadow: 0 20px 60px rgba(45,36,28,.35); }
.yes-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none !important; font-size: 26px; color: #9b8c7c !important; z-index: 1; line-height: 1; }

.yes-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.yes-detail-media { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.yes-detail-media .main { width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: var(--cream); }
.yes-detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.yes-detail-thumbs .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.yes-detail-thumbs .thumb.active { border-color: var(--accent); }
.yes-detail-noimg { width: 100%; height: 220px; background: var(--cream); border-radius: 10px; }
.yes-detail-videos { width: 100%; font-size: 13px; }
.yes-detail-info h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.35; padding-right: 24px; }
.yes-detail-meta { color: #9b8c7c; font-size: 13px; margin-bottom: 10px; }
.yes-detail-price { font-size: 20px; font-weight: 700; color: var(--brown); margin-bottom: 10px; }
.yes-detail-price small { font-weight: 400; color: #9b8c7c; font-size: 12px; }
.yes-detail-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.yes-detail-size { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: 13px; background: #fff !important; color: var(--brown) !important; cursor: pointer; }
.yes-detail-size.active { border: 2px solid var(--accent); color: var(--accent) !important; font-weight: 600; padding: 3px 11px; background: var(--accent-soft) !important; }
.yes-detail-size.oos { color: #c3b6a5 !important; text-decoration: line-through; cursor: not-allowed; }
.yes-detail-desc { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; line-height: 1.6; }
.yes-detail-desc img { max-width: 100%; }

@media (max-width: 700px) { .yes-detail { grid-template-columns: 1fr; } }

@media (max-width: 800px) {
	.yes-layout, .yes-checkout, .yes-order { grid-template-columns: 1fr; }
	.yes-filters { order: -1; }
	.yes-genders { grid-template-columns: repeat(4, 1fr); }
	.yes-co-summary { position: static; }
	.yes-totals { width: auto; margin-left: 0; }
	.yes-h2 { font-size: 22px; }
}

@media (max-width: 560px) {
	.yes-app { font-size: 14px; }
	.yes-wordmark { font-size: 28px; }
	.yes-kicker { font-size: 10px; }
	.yes-2col { grid-template-columns: 1fr; }
	.yes-genders { grid-template-columns: repeat(2, 1fr); }
	.yes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.yes-card-img { height: 140px; }
	.yes-order-main, .yes-order-msgs, .yes-co-summary, .yes-track-form { padding: 16px; border-radius: 12px; }
	.yes-table { font-size: 13px; }
	.yes-table th, .yes-table td { padding: 9px 5px; }
	/* Drop the ex-VAT and VAT columns on phones so the row never overflows;
	   the line total (VAT-inclusive) is what matters at a glance. */
	.yes-cart-table th:nth-child(4), .yes-cart-table td:nth-child(4),
	.yes-cart-table th:nth-child(5), .yes-cart-table td:nth-child(5) { display: none; }
	.yes-order-main .yes-table th:nth-child(3), .yes-order-main .yes-table td:nth-child(3),
	.yes-order-main .yes-table th:nth-child(4), .yes-order-main .yes-table td:nth-child(4) { display: none; }
	.yes-msg { max-width: 92%; }
}
