/* ==========================================================================
   Velaa – shop styles (archives, product page, cart drawer, Woo pages)
   ========================================================================== */

/* Archive toolbar ---------------------------------------------------------- */
.vl-shop { padding-top: 12px; }
.vl-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px 0 2px; margin-bottom: 12px; }
.vl-shop__bar.is-center { justify-content: center; margin-bottom: 24px; }
.vl-sort, .vl-filter-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.vl-filter-m { display: none; }
.vl-filter-m select { border: 0; background: none; font-size: 12px; color: var(--ink); padding: 4px 2px; appearance: none; -webkit-appearance: none; outline: 0; }
.vl-sort__wrap { position: relative; }
.vl-sort select { border: 0; background: none; font-size: 12px; color: var(--ink); padding: 4px 2px; cursor: pointer; appearance: none; -webkit-appearance: none; outline: 0; }
.vl-shop .vl-products { padding: 0; }
.vl-shop .vl-card__media { aspect-ratio: 334 / 491; }

/* Product page --------------------------------------------------------------- */
.vl-product { display: grid; grid-template-columns: 550px minmax(0, 1fr); gap: 0 130px; padding: 32px var(--pad) 0; }
.vl-product__slides { display: flex; flex-direction: column; gap: 16px; }
.vl-product__img { aspect-ratio: 550 / 774; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.vl-product__img img { width: 100%; height: 100%; object-fit: cover; }
.vl-product__dots { display: none; }
.vl-product__side { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; max-width: 600px; }
.vl-product__info { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 40px; }
.vl-product__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vl-product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.vl-product__meta a:hover { color: var(--ink); }
.vl-dot { font-size: 10px; }
.vl-product__title { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.vl-product__price .vl-price { font-size: 24px; line-height: 1.6; gap: 6px; white-space: nowrap; }
.vl-product__price .vl-price__was { font-size: 18px; font-weight: 400; }
.vl-product__desc { margin-top: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; letter-spacing: 0; }
.vl-product__desc p + p { margin-top: 8px; }

.vl-buy { padding-top: 16px; }
.vl-buy__opts { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vl-opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.vl-opt__label { padding: 0; font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
.vl-opt__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-opt__pill { position: relative; cursor: pointer; }
.vl-opt__pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vl-opt__pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 67px; height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 1; transition: border-color .2s, background-color .2s, opacity .2s; }
.vl-opt__pill:hover span { border-color: #b7b9be; }
.vl-opt__pill input:checked + span { border-color: var(--ink); }
.vl-opt__pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.vl-opt__pill.is-na span { color: var(--gray); text-decoration: line-through; }

.vl-buy__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0 0; }
.vl-buy__stock { font-size: 16px; color: var(--muted); }
.vl-buy__stock.is-in { color: var(--green-ink); }
.vl-qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 8px; }
.vl-qty button { width: 36px; height: 100%; display: grid; place-items: center; font-size: 18px; }
.vl-qty input { width: 44px; height: 100%; border: 0; text-align: center; font-size: 14px; background: none; -moz-appearance: textfield; outline: 0; }
.vl-qty input::-webkit-outer-spin-button, .vl-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vl-qty--sm { height: 32px; margin-top: 8px; }
.vl-qty--sm button { width: 28px; font-size: 14px; }
.vl-qty--sm input { width: 32px; font-size: 13px; }
.vl-buy__btns { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin-top: 16px; }
.vl-buy__btns .vl-btn { min-height: 58px; font-size: 16px; }
.vl-buy .vl-form-msg { margin-top: 10px; }
.vl-pay { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.vl-pay__icon { width: 26px; height: auto; }

.vl-product__sections { margin-left: -2px; }
.vl-acc { border-bottom: 1px solid var(--line); }
.vl-acc summary { display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; list-style: none; cursor: pointer; font-size: 14px; letter-spacing: -.02em; }
.vl-acc summary::-webkit-details-marker { display: none; }
.vl-acc__dot { width: 24px; height: 24px; border-radius: 4px; background: var(--tone); flex: none; }
.vl-acc__icon { margin-left: auto; font-size: 18px; transition: transform .3s var(--ease); }
.vl-acc[open] .vl-acc__icon { transform: rotate(45deg); }
.vl-acc__body { padding: 0 0 16px; font-size: 16px; line-height: 1.7; }
.vl-acc__body p + p, .vl-acc__body p + .vl-chart { margin-top: 14px; }
.vl-acc__more a { text-decoration: underline; text-underline-offset: 3px; }
.vl-chart { overflow-x: auto; }
.vl-chart table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vl-chart th, .vl-chart td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vl-chart thead th { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.vl-chart tbody th { font-weight: 500; }
.vl-related { padding-top: 104px; }

/* Cart drawer ------------------------------------------------------------------- */
.vl-drawer { position: fixed; inset: 0; z-index: 140; }
.vl-drawer__backdrop { position: absolute; inset: 0; background: rgba(9, 9, 11, .3); opacity: 0; transition: opacity .35s; }
.vl-drawer__panel { position: absolute; top: 16px; bottom: 16px; right: 16px; width: min(500px, calc(100% - 32px)); background: #fff; border-radius: 12px; overflow: hidden; transform: translateX(calc(100% + 24px)); transition: transform .5s var(--ease); display: flex; }
.vl-drawer.is-open .vl-drawer__backdrop { opacity: 1; }
.vl-drawer.is-open .vl-drawer__panel { transform: none; }
.vl-drawer__inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.vl-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 18px; border-bottom: 1px solid var(--line); }
.vl-drawer__title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.vl-drawer__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--purple); color: var(--purple-ink); font-size: 11px; font-weight: 500; }
.vl-drawer__body { flex: 1; overflow: auto; padding: 0 16px; }
.vl-drawer__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 14px; }
.vl-drawer__bag { width: 64px; height: 64px; margin-bottom: 4px; }
.vl-mini__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.vl-mini__item.is-busy { opacity: .45; pointer-events: none; }
.vl-mini__img { display: block; width: 72px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.vl-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.vl-mini__name { font-size: 16px; line-height: 1.4; letter-spacing: -.01em; }
.vl-mini__attrs { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.vl-mini__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.vl-mini__price { font-family: var(--display); font-weight: 500; font-size: 16px; }
.vl-mini__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.vl-mini__remove:hover { color: var(--ink); }
.vl-drawer__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.vl-drawer__sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 16px; }
.vl-drawer__sub span:last-child { font-family: var(--display); font-weight: 500; font-size: 20px; }
.vl-drawer__foot .vl-btn--block { min-height: 44px; }
.vl-drawer__cartlink { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.vl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.vl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.vl-lock, html.vl-lock body { overflow: hidden; }

/* Woo pages (cart, checkout, account) ------------------------------------------- */
.vl-woo-page .vl-prose-wrap { max-width: 1200px; padding-top: 8px; padding-bottom: 40px; }
.vl-phero.is-plain { min-height: 0; padding-top: 72px; padding-bottom: 56px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { margin: 0 0 16px !important; padding: 12px 16px !important; border-radius: 10px !important; border: 0 !important; background: var(--green) !important; color: var(--green-ink) !important; font-size: 14px; list-style: none; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { background: #fde2e1 !important; color: #8a1c14 !important; }
.woocommerce-info, .wc-block-components-notice-banner.is-info { background: var(--blue) !important; color: var(--blue-ink) !important; }
.wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
	border-radius: 999px !important; background: var(--ink) !important; color: #fff !important; font-family: var(--sans) !important; font-weight: 400 !important; letter-spacing: .02em; border: 0 !important; min-height: 48px; padding: 8px 24px !important; text-decoration: none !important;
}
.wc-block-components-button:not(.is-link):hover, .wp-element-button:hover { background: #2a2a2e !important; }
.wc-block-cart, .wc-block-checkout { font-family: var(--sans); }
.wc-block-components-title, .wp-block-woocommerce-cart h2, .wc-block-checkout__title { font-family: var(--display) !important; font-weight: 700 !important; letter-spacing: -.03em; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select, .wc-block-components-textarea {
	border-radius: 8px !important; border-color: var(--line) !important;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus { border-color: var(--ink) !important; box-shadow: none !important; }
.wc-block-components-product-name { font-size: 16px !important; color: var(--ink) !important; text-decoration: none !important; }
.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper { border-color: var(--line) !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 8px; }
.wc-block-components-order-summary-item__quantity { background: var(--purple) !important; color: var(--purple-ink) !important; border: 0 !important; box-shadow: none !important; }
.wp-block-woocommerce-empty-cart-block .wp-block-heading { font-family: var(--display); }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 14px; border-radius: 99px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--purple); color: var(--purple-ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }

/* Tablet -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.vl-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
	.vl-buy__btns { grid-template-columns: 1fr; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

/* Phone ----------------------------------------------------------------------------- */
@media (max-width: 809px) {
	.vl-shop__bar { flex-direction: row; align-items: center; padding: 0; }
	.vl-shop__bar:not(.is-center) .vl-pills { display: none; }
	.vl-shop__bar.is-center .vl-filter-m { display: none; }
	.vl-filter-m { display: flex; }
	.vl-shop .vl-products { grid-template-columns: 1fr; row-gap: 20px; }
	.vl-shop .vl-card__media { aspect-ratio: 358 / 525; }

	.vl-product { grid-template-columns: 1fr; padding-top: 16px; }
	.vl-product__gallery { margin: 0 calc(var(--pad) * -1); }
	.vl-product__slides { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 var(--pad); scrollbar-width: none; }
	.vl-product__slides::-webkit-scrollbar { display: none; }
	.vl-product__img { flex: 0 0 84%; scroll-snap-align: start; aspect-ratio: 300 / 422; }
	.vl-product__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
	.vl-product__dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: background-color .2s, width .3s var(--ease); }
	.vl-product__dots span.is-on { background: var(--ink); width: 16px; }
	.vl-product__info { position: static; padding-top: 24px; }
	.vl-product__side { gap: 32px; }
	.vl-product__title { font-size: 26px; }
	.vl-opt__pill span { min-width: 56px; height: 44px; }
	.vl-buy__btns { grid-template-columns: 1fr; }
	.vl-buy__btns .vl-btn { min-height: 52px; }
	.vl-related { padding-top: 80px; }

	.vl-drawer__panel { top: 8px; bottom: 8px; right: 8px; width: calc(100% - 16px); }
	.vl-phero.is-plain { padding-top: 48px; padding-bottom: 32px; }
}
