/* Poklon vaučer Astarta Parfums: ista kartica na sajtu i na slici za mejl. Veličine u cqw, pa se skalira sa širinom. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond.woff2") format("woff2"); }
.astg-card { --bg: radial-gradient(120% 140% at 15% 0%, #2b2b2b 0%, #101010 55%, #050505 100%); --ink: #fff; --line: rgb(255 255 255 / .3); --line2: rgb(255 255 255 / .1); --mute: rgb(255 255 255 / .55);
  --foil: linear-gradient(100deg, #dcdce0, #ffffff 38%, #ececf0 60%, #ffffff); --rule: #ffffff; --wm: .06;
  position: relative; container-type: inline-size; aspect-ratio: 1.6; overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, sans-serif; box-shadow: 0 30px 40px -26px rgb(0 0 0 / .55), 0 2px 4px rgb(0 0 0 / .15); }
.astg-card--silver { --foil: linear-gradient(100deg, #9c9ca1, #f2f2f4 38%, #bdbdc2 60%, #efeff1); --rule: #cfcfd4; --wm: .07; --line: rgb(207 207 212 / .34); --line2: rgb(207 207 212 / .12); }
.astg-card--gold { --foil: linear-gradient(100deg, #a8802f, #f6dc92 36%, #c19a46 60%, #f3d788); --rule: #d9b66f; --wm: .09; --line: rgb(217 182 111 / .4); --line2: rgb(217 182 111 / .14); }
.astg-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 78% 40%, transparent 0 .9cqw, rgb(255 255 255 / .045) .9cqw .98cqw), repeating-radial-gradient(circle at 70% 55%, transparent 0 1.1cqw, rgb(255 255 255 / .035) 1.1cqw 1.18cqw);
  -webkit-mask: radial-gradient(70% 90% at 78% 45%, #000, transparent); mask: radial-gradient(70% 90% at 78% 45%, #000, transparent); }
.astg-card__frame { position: absolute; inset: 3cqw; border: 1px solid var(--line); }
.astg-card__frame--in { inset: 4cqw; border-color: var(--line2); }
.astg-card__wm { position: absolute; right: 9cqw; top: 9cqw; height: 34cqw; width: auto; opacity: var(--wm) !important; pointer-events: none; }
.astg-card__logo { position: absolute; left: 4.2cqw; top: 4.6cqw; width: 21cqw; height: auto; }
.astg-card__rule { position: absolute; left: 8cqw; right: 8cqw; bottom: 30.5cqw; height: 1px; background: linear-gradient(90deg, var(--rule), transparent 70%); }
.astg-card__label { position: absolute; left: 8cqw; bottom: 25.5cqw; font-size: 2.1cqw; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--mute); }
.astg-card__amount { position: absolute; left: 7.6cqw; bottom: 9.5cqw; font: 300 15cqw/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -.01em; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.astg-card__amount small { margin-left: 1.4cqw; font-size: .38em; font-weight: 400; letter-spacing: .08em; }
.astg-card__tag { position: absolute; right: 8cqw; bottom: 9.2cqw; text-align: right; font-size: 1.7cqw; font-weight: 500; line-height: 1.7; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.astg-card__to { position: absolute; right: 8cqw; top: 6cqw; font-size: 2.2cqw; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.astg-card__from { position: absolute; right: 8cqw; top: 9.4cqw; max-width: 40cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 2.2cqw; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.astg-card__from[hidden] { display: none; }
.astg-card__code { position: absolute; right: 8cqw; top: 14cqw; padding: .9cqw 1.8cqw; border: 1px solid var(--line); background: rgb(255 255 255 / .05); font: 600 2.2cqw/1 ui-monospace, monospace; letter-spacing: .12em; color: var(--ink); }
.astg-card * { transition: color .3s, background-color .3s; }

/* Stranica proizvoda */
.astg-preview { max-width: 520px; margin: 0 0 28px; }
.astg-preview__msg { margin: 16px 0 0; padding: 14px 18px; background: #f5f5f5; font-style: italic; line-height: 1.6; }
.astg-amounts { margin: 18px 0; padding: 0; border: 0; }
.astg-amounts legend { margin: 0 0 10px; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.astg-amounts__list { display: flex; flex-wrap: wrap; gap: 10px; }
.astg-amounts__list button { min-width: 112px; padding: 13px 18px; border: 1px solid #1f1f1f; border-radius: 999px; background: #fff; color: #1f1f1f; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.astg-amounts__list button:hover { background: #f5f5f5; }
.astg-amounts__list button[aria-checked="true"] { background: #1f1f1f; color: #fff; }
.astg-facts { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.astg-facts b { display: block; font-size: 14px; }

/* Provera stanja i nalog */
.astg-mini { width: 260px; flex-shrink: 0; }
.gc-result__head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 20px 0; }
.gc-result__label { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #797979; }
.gc-result__balance { margin: 0; font-size: 40px; font-weight: 300; line-height: 1.1; }
.gc-bar { height: 4px; margin: 18px 0 8px; background: #e9e9e9; }
.gc-bar span { display: block; height: 100%; background: #1f1f1f; }
.gc-badge { display: inline-block; padding: 3px 12px; border: 1px solid #1f1f1f; border-radius: 999px; font-size: 12px; font-weight: 600; }
.gc-badge--active { background: #1f1f1f; color: #fff; }
.gc-activity { width: 100%; border-collapse: collapse; font-size: 14px; }
.gc-activity th, .gc-activity td { padding: 10px 8px; border-bottom: 1px solid #e9e9e9; text-align: left; }
.gc-activity .minus { color: #797979; } .gc-activity .plus { font-weight: 700; }
.gc-balance-form { display: flex; gap: 10px; margin: 16px 0; }
.gc-balance-form .input-text { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #1f1f1f; border-radius: 0; font: 600 16px ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.gc-balance-form .button { height: 48px; padding: 0 28px; border-radius: 999px; background: #1f1f1f; color: #fff; border: 0; font-weight: 600; cursor: pointer; }
.gc-error { margin: 12px 0; padding: 12px 16px; background: #f5f5f5; border-left: 3px solid #a10718; font-weight: 600; }
.gc-item { margin: 12px 0; padding: 16px 20px; background: #f5f5f5; }
.gc-item h3 { margin: 0 0 4px; font-size: 16px; }
.gc-check-inline { margin-top: 28px; padding: 20px; background: #f5f5f5; }
.gc-pay-note { padding: 12px 16px; background: #f5f5f5; font-size: 14px; }
@media (max-width: 640px) { .astg-mini { width: 100%; max-width: 320px; } .gc-balance-form { flex-direction: column; } }

/* Šablon stranice kartice */
.astg-page { padding-bottom: 80px; }
.astg-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px; }
.astg-summary .single-product-page__title { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.astg-lead { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: #363636; }
.astg-note { margin-top: 18px; font-size: 13px; color: #797979; line-height: 1.6; }
.astg-how { margin-top: 64px; padding-top: 32px; border-top: 1px solid #e9e9e9; }
.astg-how h2 { font-size: 20px; margin: 0 0 14px; }
.astg-how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; font-size: 15px; line-height: 1.6; }
.astg-how a, .astg-facts a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.astg-summary form.cart, .astg-summary form.variations_form { margin: 0; }
.astg-summary label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.astg-summary input[type=text], .astg-summary input[type=email], .astg-summary textarea { width: 100%; padding: 13px 14px; border: 1px solid #1f1f1f; border-radius: 0; background: #fff; font: 500 15px Inter, system-ui, sans-serif; }
.astg-summary .single_add_to_cart_button { margin-top: 18px; padding: 15px 38px; border: 0; border-radius: 999px; background: #1f1f1f; color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }
.astg-summary .single_add_to_cart_button:hover { background: #363636; }
.astg-summary .woocommerce-variation-price .price { font-size: 22px; font-weight: 700; }
.astg-summary .has-amount-buttons select[name="attribute_gift-card-amount"], .astg-summary .has-amount-buttons .label, .astg-summary .has-amount-buttons th.label { display: none; }
.astg-summary .reset_variations { display: none !important; }
@media (max-width: 800px) { .astg-product { grid-template-columns: 1fr; gap: 32px; } }

.astg-summary .woocommerce-variation-description, .astg-summary .woocommerce-variation-price { background: none; }
.astg-summary .tinv-wraper, .astg-summary .tinvwl_add_to_wishlist_button { display: none; }

.astg-wrap { max-width: 760px; margin: 0 auto; padding: 150px 20px 90px; }
.astg-wrap h1 { margin: 0 0 12px; font-size: 28px; font-weight: 700; }
.astg-summary fieldset.astg-amounts, .astg-summary fieldset.astg-amounts legend, .astg-summary td.value, .astg-summary table.variations td, .astg-summary table.variations th, .astg-summary .single_variation_wrap { background: none; }
.astg-summary .quantity { margin-top: 18px; }

/* Polje za poklon karticu u korpi i na plaćanju */
.astg-redeem { margin: 0 0 24px; padding: 18px 20px; background: #f5f5f5; color: #1f1f1f; }
.astg-redeem__form label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.astg-redeem__row { display: flex; gap: 10px; }
.astg-redeem__row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #1f1f1f; border-radius: 0; background: #fff; font: 600 15px ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.astg-redeem__row input::placeholder { color: #a5a5a5; }
.astg-redeem__btn { flex: 0 0 auto; height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: #1f1f1f; color: #fff; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.astg-redeem__btn:disabled { opacity: .6; cursor: default; }
.astg-redeem__err { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #a10718; }
.astg-redeem__ok { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; padding: 16px 18px; background: #1f1f1f; color: #fff; font-size: 14px; line-height: 1.5; }
.astg-redeem__ok > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.astg-redeem__ok strong { font-size: 15px; }
.astg-redeem__check { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #1f1f1f; font-weight: 700; }
.astg-redeem__remove { flex: 0 0 auto; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.astg-redeem.is-applied .astg-redeem__form { padding-top: 2px; }
@media (max-width: 600px) { .astg-redeem__row { flex-direction: column; } .astg-redeem__btn { width: 100%; } }
.astg-redeem .astg-redeem__row input#astg-redeem-number { height: 46px; padding: 0 14px; border: 1px solid #1f1f1f; border-radius: 0; background: #fff; box-shadow: none; }
.astg-redeem .astg-redeem__row input#astg-redeem-number:focus { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.astg-card__to .js-astg-to { text-transform: none; letter-spacing: .04em; }

.astg-preview__sign { display: block; margin-top: 6px; font-style: normal; font-weight: 600; }

/* Dodavanje u korpu bez osvežavanja */
.astg-added { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 16px; background: #171717; color: #fff; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(-6px); pointer-events: none; max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-top: 0; transition: opacity .35s ease, transform .35s ease, max-height .35s ease, padding .35s ease, margin .35s ease; }
.astg-added.show { opacity: 1; transform: none; pointer-events: auto; max-height: 80px; padding-top: 12px; padding-bottom: 12px; margin-top: 14px; }
.astg-added__check { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #171717; font-size: 13px; font-weight: 700; }
.astg-added a { margin-left: auto; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.astg-added-err { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #a10718; }
.astg-summary .single_add_to_cart_button.is-loading { opacity: .65; cursor: progress; }
.astg-bump { animation: astg-bump .5s ease; }
@keyframes astg-bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .astg-added, .astg-bump { transition: none; animation: none; } }

/* Mini korpa u zaglavlju: podaci kartice (primalac, od koga) idu u novi red umesto da razvuku red u širinu */
.widget_shopping_cart_content { overflow-x: hidden; }
.widget_shopping_cart_content .mini_cart_item { flex-wrap: wrap; }
.widget_shopping_cart_content .mini_cart_item dl.variation { order: 5; flex: 0 0 100%; box-sizing: border-box; margin: 6px 0 0; padding: 0 0 0 78px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12px; line-height: 1.45; text-align: left; }
.widget_shopping_cart_content .mini_cart_item dl.variation dt { margin: 0; font-weight: 600; opacity: .7; }
.widget_shopping_cart_content .mini_cart_item dl.variation dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.widget_shopping_cart_content .mini_cart_item dl.variation dd p { margin: 0; font-size: inherit; line-height: inherit; }
.widget_shopping_cart_content .mini_cart_item dl.variation .variation-Poruka { display: none; }

/* Blok „Poklon kartica“ na kraju prodavnice i kategorija */
.astg-promo { background: #111; color: #fff; overflow: hidden; }
.astg-promo__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1280px; margin: 0 auto; padding: 64px 5vw; }
.astg-promo__txt { flex: 1 1 50%; max-width: 560px; }
.astg-promo__eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #d6b878; }
.astg-promo h2 { margin: 0 0 14px; font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -.0125em; color: #fff; }
.astg-promo__lead { margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: #fff; }
.astg-promo__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.astg-promo__btn { display: inline-block; padding: 13px 24px; border: 1px solid rgb(255 255 255 / .55); border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.astg-promo__btn:hover { background: #fff; border-color: #fff; color: #111 !important; }
.astg-promo__cards { position: relative; flex: 0 0 460px; height: 290px; }
.astg-promo__card { position: absolute; width: 270px; transition: transform .35s ease; }
.astg-promo__card .astg-card { box-shadow: 0 24px 40px -18px rgb(0 0 0 / .8); }
.astg-promo__card--1 { left: 0; top: 70px; transform: rotate(-7deg); z-index: 1; }
.astg-promo__card--2 { left: 90px; top: 30px; transform: rotate(-1deg); z-index: 2; }
.astg-promo__card--3 { left: 190px; top: 0; transform: rotate(6deg); z-index: 3; }
.astg-promo__in:hover .astg-promo__card--1 { transform: rotate(-10deg) translateX(-8px); }
.astg-promo__in:hover .astg-promo__card--3 { transform: rotate(9deg) translateX(8px); }
@media (max-width: 900px) { .astg-promo__cards { display: none; } .astg-promo__in { padding: 44px 24px; } .astg-promo h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .astg-promo__card { transition: none; } }

/* Mini korpa: znak × iz teksta se crta preko SVG ikone (dupli X), pa sakrivamo tekst i ostavljamo samo ikonu; naziv ne gura količinu u novi red */
.mini-cart .woocommerce-mini-cart .remove_from_cart_button { font-size: 0 !important; line-height: 0 !important; color: transparent !important; text-indent: -9999px; overflow: hidden; background-repeat: no-repeat; background-position: center; background-color: transparent !important; }
.widget_shopping_cart_content .mini_cart_item > a:not(.remove) { flex: 1 1 0; min-width: 0; }
.widget_shopping_cart_content .mini_cart_item .quantity { flex: 0 0 auto; }

/* Moj nalog → Poklon kartice */
.astg-intro { margin: 0 0 20px; font-size: 15px; font-weight: 400; line-height: 1.6; color: #363636; }
.astg-empty { margin: 0 0 24px; padding: 28px; background: #171717; color: #fff; }
.astg-empty p { margin: 0 0 18px; font-size: 16px; font-weight: 500; line-height: 1.5; color: #fff; }
.astg-btn { display: inline-block; padding: 13px 28px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #171717 !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.astg-btn:hover { background: transparent; color: #fff !important; }
.astg-btn--ghost { border-color: #171717; background: #171717; color: #fff !important; }
.astg-btn--ghost:hover { background: transparent; color: #171717 !important; }
.gc-check-inline { margin-top: 28px; padding: 24px 28px; background: #f5f5f5; border: 0; }
.gc-check-inline h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #171717; }
.gc-check-inline p { margin: 0 0 16px; font-size: 15px; font-weight: 400; color: #363636; }
.astg-promo { background: #171717; }

/* Provera stanja: isti okvir i tipografija kao tekstualne stranice teme */
.astg-wrap { max-width: none; margin: 0; padding: 100px 5% 80px; font-size: 16px; font-weight: 500; line-height: 1.56; color: #1f1f1f; }
.astg-wrap h1 { margin: 0 0 30px; font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 36px; color: #333; }
.astg-wrap p { margin: 0 0 22px; font-size: 16px; font-weight: 500; color: #1f1f1f; }
.astg-wrap h2 { margin: 30px 0 11px; font-size: 20px; font-weight: 700; line-height: 32px; color: #333; }

/* Uža kolona radi preglednosti */
.astg-wrap { max-width: 720px; margin: 0 auto; padding: 100px 20px 80px; box-sizing: border-box; }

/* Provera stanja: fiksno zaglavlje pokriva gornjih ~115 px */
.astg-wrap { padding-top: 160px; }
@media (max-width: 700px) { .astg-wrap { padding-top: 140px; } }

/* Na stranici kartice ne prikazujemo „Dostupno“ (zaliha se ne prati) */
.astg-summary .woocommerce-variation-availability, .astg-summary p.stock, .astg-summary .stock { display: none !important; }

/* Kolekcija: cena i dugme za korpu su uvek na istoj visini u redu, bez obzira na dužinu opisa „Podseća na“ */
.products__products .js-product { display: flex; flex-direction: column; }
.products__products .js-product .products__product-info { flex: 1 1 auto; }
.products__products .js-product .products__product-price-and-btn { margin-top: auto; }

/* Napomena o više primalaca se ne prikazuje (jedan primalac po vaučeru) */
.astg-summary #pwgc-to + small, .astg-summary #pwgc-to ~ small:first-of-type { display: none; }

/* Polje za poruku je iste širine kao ostala polja */
.astg-summary textarea, .astg-summary #pwgc-message { display: block; width: 100% !important; max-width: 100%; box-sizing: border-box; resize: vertical; }
