.pd-wrap {
position: relative;
--pd-img-pad-x: 18px;
--pd-img-pad-b: 18px;
}
.pd-img-wrap {
padding: 0 var(--pd-img-pad-x) var(--pd-img-pad-b);
background: transparent;
position: relative;
}
.pd-img-wrap img {
width: 100%; height: 200px;
object-fit: cover; display: block;
border-radius: 10px;
background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
opacity: 0;
transition: opacity .45s ease;
}
.pd-img-wrap img.is-loaded { opacity: 1; }
.pd-img-wrap::after {
content: "";
position: absolute;
left: var(--pd-img-pad-x); right: var(--pd-img-pad-x); bottom: var(--pd-img-pad-b);
height: 110px;
background: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%);
border-radius: 0 0 10px 10px;
z-index: 1;
pointer-events: none;
}
.pd-img-placeholder {
width: 100%; height: 200px;
border-radius: 10px;
background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
background: linear-gradient(135deg, var(--mg-primary) 0%, var(--mg-primary-2) 100%);
}
.pd-body { padding: 0 16px 4px; }
.pd-title-row {
display: flex; flex-direction: column;
gap: 0; margin-bottom: 0;
}
.pd-name {
font-family: "Alkatra-VariableFont_wght", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 17px; font-weight: 300; font-style: normal; color: var(--mg-text, #111);
margin: 0 0 2px; line-height: 1.25; flex: 1;
text-align: center;
}
[data-theme="dark"] .pd-name { color: #fff; }
.pd-body { position: relative; }
.pd-fav-btn {
position: absolute; top: 0; right: 14px; z-index: 2;
width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
display: inline-flex; align-items: center; justify-content: center;
background: var(--mg-surface-2); color: var(--mg-text-soft); border: 0;
cursor: pointer; font-size: 1.05rem;
transition: color .15s, background .15s, transform .1s;
}
.pd-fav-btn:active { transform: scale(.9); }
.pd-fav-btn.is-fav { color: #e0245e; }
.pd-price-row {
display: flex; align-items: center; justify-content: center;
flex-wrap: wrap; gap: 8px;
margin-bottom: 8px;
}
.pd-price {
font-family: "Alkatra-VariableFont_wght", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 15px; font-weight: 300; font-style: normal;
color: var(--mg-text, #111);
white-space: nowrap; padding-top: 2px;
letter-spacing: .02em;
}
[data-theme="dark"] .pd-price { color: rgba(255,255,255,0.85); }
.pd-price-symbol {
font-size: 15px; font-weight: 300;
margin-right: 2px;
}
[data-theme="dark"] .pd-price-symbol { opacity: .75; }
.pd-price-ask {
font-size: 15px; font-weight: 500; font-style: italic;
color: var(--mg-text-muted, #666);
letter-spacing: 0;
}
.pd-imgnote {
margin: calc(8px - var(--pd-img-pad-b)) var(--pd-img-pad-x) 8px;
font-size: 12px;
line-height: 1.4;
text-align: center;
color: var(--mg-text-muted, #666);
}
[data-theme="dark"] .pd-imgnote { color: rgba(255,255,255,0.5); }
.pd-cat {
display: flex; align-items: center; justify-content: center; gap: 4px;
margin-bottom: 2px;
font-size: 12px; font-weight: 500;
color: var(--mg-text-muted, #666);
}
[data-theme="dark"] .pd-cat { color: rgba(255,255,255,0.55); }
.pd-cat-sep { opacity: .5; font-weight: 400; }
.pd-cat-all {
cursor: pointer;
transition: opacity .15s;
}
.pd-cat-all:hover { opacity: .85; }
.pd-cat-name {
cursor: pointer;
transition: opacity .15s;
}
.pd-cat-name:hover { opacity: .85; }
.pd-divider {
height: 1px; background: var(--mg-border, #e2e2e2);
margin: 4px 0;
}
.pd-contents {
font-size: 12px; font-weight: 400; color: var(--mg-text-soft, #555);
line-height: 1.6; margin: 0 0 2px;
text-align: center; hyphens: auto;
}
.pd-desc {
font-size: 12px; color: var(--mg-text-soft, #555);
line-height: 1.6; margin: 0 0 6px;
text-align: center; hyphens: auto;
}
.pd-longtext { text-align: center; }
.pd-longtext.is-clampable .pd-longtext-body {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 0;
}
.pd-longtext.is-expanded .pd-longtext-body {
display: block;
overflow: visible;
margin-bottom: 0;
}
.pd-longtext-toggle {
display: inline-flex; align-items: center; gap: 3px;
margin: 2px 0 6px; padding: 2px 4px;
background: transparent; border: 0; cursor: pointer;
color: var(--mg-primary); font-size: 12px; font-weight: 600;
}
.pd-longtext-toggle i { font-size: 11px; transition: transform .2s ease; }
.pd-longtext.is-expanded .pd-longtext-toggle i { transform: rotate(180deg); }
.pd-footer { padding: 8px 16px 18px; }
.pd-tags {
display: flex; flex-wrap: wrap; justify-content: center;
gap: 6px;
margin-top: 14px; padding-top: 14px;
border-top: 1px solid var(--mg-border, #e2e2e2);
}
.pd-tag {
display: inline-flex; align-items: center; gap: 1px;
padding: 3px 10px 3px 7px;
border-radius: 14px;
background: rgba(0,0,0,.05);
color: var(--mg-text-muted, #666);
font-size: 12px; font-weight: 500; line-height: 1.4;
}
.pd-tag i { font-size: 12px; opacity: .65; }
[data-theme="dark"] .pd-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.pd-sec { margin: 0; }
.pd-sec-hdr {
display: flex; align-items: center; gap: 8px;
width: 100%;
background: transparent; border: 0;
padding: 5px 24px;
cursor: pointer;
text-align: left;
color: var(--mg-text, #111);
}
.pd-sec-title {
flex: 0 0 auto;
font-size: 13px; font-weight: 400;
}
.pd-sec-sum {
flex: 1 1 auto; min-width: 0;
text-align: right;
font-size: 12px; color: var(--mg-text-soft, #777);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-sec-chev {
flex: 0 0 auto;
font-size: 12px; color: var(--mg-text-soft, #999);
transition: transform .25s ease;
}
.pd-sec-hdr[aria-expanded="true"] .pd-sec-chev { transform: rotate(180deg); }
.pd-sec-body {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows .28s ease;
}
.pd-sec-hdr[aria-expanded="true"] + .pd-sec-body { grid-template-rows: 1fr; }
.pd-sec-inner {
overflow: hidden;
min-height: 0;
}
.pd-sec-body > .pd-sec-inner { padding-top: 0; }
.pd-sec-hdr[aria-expanded="true"] + .pd-sec-body > .pd-sec-inner { padding-bottom: 6px; }
.pd-sec-inner > * { margin-top: 0 !important; margin-bottom: 0 !important; }
[data-theme="dark"] .pd-sec-hdr { color: rgba(255,255,255,0.9); }
.pd-opt-pills {
display: flex; align-items: center; justify-content: center;
flex-wrap: wrap; gap: 6px 8px;
margin: 2px 0;
}
.pd-opt-pill {
flex: 0 0 auto;
display: inline-flex; align-items: center; gap: 4px;
white-space: nowrap;
font-size: 12px;
color: var(--mg-text-soft, #555);
background: var(--mg-surface-2, #f2f2f2);
border: 0;
border-radius: 999px;
padding: 4px 10px;
cursor: pointer;
box-shadow: inset 0 0 0 1px transparent;
transition: box-shadow .15s ease;
}
.pd-opt-extra { font-weight: 600; opacity: .9; }
.pd-opt-pill:hover,
.pd-opt-pill.is-on {
box-shadow: inset 0 0 0 1.5px var(--mg-primary, #2563eb);
}
[data-theme="dark"] .pd-opt-pill {
background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
}
.pd-eco { display: flex; flex-direction: column; gap: 8px; padding: 2px 24px; }
.pd-eco-row {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
column-gap: 10px;
}
.pd-eco-ico {
grid-column: 1; grid-row: 1 / span 2;
width: 34px; height: 34px; border-radius: 10px;
display: inline-flex; align-items: center; justify-content: center;
font-size: 15px;
}
.pd-eco-ico--carbon { background: rgba(45,156,90,.12); color: #2D9C5A; }
.pd-eco-ico--water  { background: rgba(47,128,237,.12); color: #2F80ED; }
.pd-eco-name { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 600; color: var(--mg-text, #111); line-height: 1.3; }
.pd-eco-sub  { grid-column: 2; grid-row: 2; font-size: 11px; color: var(--mg-text-soft, #888); line-height: 1.3; }
.pd-eco-val  { grid-column: 3; grid-row: 1; justify-self: end; font-size: 12px; font-weight: 600; color: var(--mg-text, #111); line-height: 1.3; white-space: nowrap; }
[data-theme="dark"] .pd-eco-name,
[data-theme="dark"] .pd-eco-val { color: rgba(255,255,255,.9); }
[data-theme="dark"] .pd-eco-sub { color: rgba(255,255,255,.5); }
.pd-eco-amount {
grid-column: 3; grid-row: 2; justify-self: end;
font-size: 11px; font-weight: 600; line-height: 1.3;
color: var(--mg-text-soft, #555);
}
[data-theme="dark"] .pd-eco-amount { color: rgba(255,255,255,.72); }
.pd-eco-sum { color: #2D9C5A; font-weight: 600; }
[data-theme="dark"] .pd-eco-sum { color: #4FC17E; }
.pd-eco-leaf { font-size: 1.05em; line-height: 1; }
.pd-sec--eco .pd-sec-title { color: #2D9C5A; font-weight: 600; }
[data-theme="dark"] .pd-sec--eco .pd-sec-title { color: #4FC17E; }
@media (max-width: 991px) {
.pd-wrap {
--pd-img-pad-x: 9px;
--pd-img-pad-b: 4px;
}
.pd-img-wrap::after {
height: 88px;
}
.pd-img-wrap img,
.pd-img-placeholder {
height: 160px;
}
.pd-body {
padding: 0 8px 2px;
}
.pd-price-row {
margin-bottom: 4px;
}
.pd-divider {
margin: 2px 0;
}
.pd-sec-hdr {
padding: 3px 24px;
}
}
.pd-order-bar {
position: sticky; bottom: 0; z-index: 3;
margin-top: 10px;
padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
background: var(--mg-surface);
border-top: 1px solid var(--mg-border);
}
.pd-add-btn {
width: 100%;
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 8px 14px;                                     /* .pr-notebox ile aynı yükseklik */
border: 1.5px solid var(--mg-primary); border-radius: 10px; cursor: pointer;
background: transparent; color: var(--mg-primary);     /* outline (kart + ile aynı desen) */
font-size: 14px; font-weight: 700;
transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.pd-add-btn .pd-add-price { opacity: .95; }
.pd-add-btn:active { transform: translateY(1px); }
.pd-add-btn.is-added { background: var(--mg-primary); border-color: var(--mg-primary); color: #fff; }   /* eklendi/güncellendi = tema rengi */
.pd-rev { padding: 0 24px; text-align: left; }
.pd-rev-sum { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pd-rev-avg { display: inline-flex; align-items: center; gap: 4px; color: var(--mg-text, #111); font-weight: 600; }
.pd-rev-avg i { color: var(--mg-primary); font-size: 11px; }
.pd-rev-cnt { color: var(--mg-text-soft, #777); }
.pd-rev-listwrap.is-clamped:not(.is-expanded) .pd-rev-item:nth-child(n+4) { display: none; }
.pd-rev-listwrap.is-clamped:not(.is-expanded) .pd-rev-item:nth-child(3) { border-bottom: 0; }
.pd-rev-more { margin-top: 6px; }
.pd-rev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-rev-item { padding: 8px 0; border-bottom: 1px solid var(--mg-border, rgba(0,0,0,.08)); }
.pd-rev-item:last-child { border-bottom: 0; }
.pd-rev-head { display: flex; align-items: center; gap: 8px; }
.pd-rev-who { font-size: 12.5px; font-weight: 600; color: var(--mg-text, #111); }
.pd-rev-mine-tag {
padding: 1px 7px;
border: 1px solid var(--mg-primary); border-radius: 999px;
color: var(--mg-primary); font-size: 10px; line-height: 1.7; white-space: nowrap;
}
.pd-rev-stars { margin-left: auto; white-space: nowrap; color: var(--mg-primary); font-size: 11px; letter-spacing: 1px; }
.pd-rev-text { font-size: 12px; line-height: 1.6; color: var(--mg-text-soft, #555); margin: 4px 0 0; }
.pd-rev-date { display: block; margin-top: 3px; font-size: 11px; color: var(--mg-text-muted, #999); }
.pd-rev-empty { font-size: 12px; line-height: 1.6; color: var(--mg-text-soft, #555); margin: 0; text-align: center; }
.pd-rev-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-rev-pick { display: flex; justify-content: center; gap: 6px; }
.pd-rev-star {
width: 32px; height: 32px; padding: 0;
display: inline-flex; align-items: center; justify-content: center;
background: var(--mg-surface, #fff);
border: 1px solid var(--mg-border, rgba(0,0,0,.12)); border-radius: 8px;
color: var(--mg-text-muted, #999); font-size: 14px; cursor: pointer;
transition: transform .12s, border-color .15s, background .15s, color .15s;
}
.pd-rev-star:active { transform: scale(.93); }
.pd-rev-star.is-on { border-color: var(--mg-primary); background: var(--mg-primary-soft); color: var(--mg-primary); }
.pd-rev-star:disabled { opacity: .55; cursor: default; }
.pd-rev-name,
.pd-rev-text-in {
width: 100%;
padding: 8px 12px;
background: var(--mg-surface, #fff);
border: 1px solid var(--mg-primary); border-radius: 10px;
color: var(--mg-text, #111); font-size: 13px; line-height: 1.5;
font-family: inherit;
}
.pd-rev-text-in { resize: none; min-height: 72px; }
.pd-rev-name::placeholder,
.pd-rev-text-in::placeholder { color: var(--mg-text-soft, #555); }
.pd-rev-name:disabled,
.pd-rev-text-in:disabled { opacity: .65; }
.mg-char-counter {
display: block;
font-size: .72rem;
color: var(--mg-text-muted, #999);
text-align: right;
margin-top: -4px;      /* alanın hemen altına yapışsın (form gap'i 8px) */
line-height: 1;
}
.mg-counter-warn   { color: #b8860b; font-weight: 500; }
.mg-counter-danger { color: #dc3545; font-weight: 600; }
[data-theme="dark"] .mg-counter-warn   { color: #ffc107; }
[data-theme="dark"] .mg-counter-danger { color: #ff6b6b; }
.pd-rev-send {
width: 100%;
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 8px 14px; cursor: pointer;
border: 1.5px solid var(--mg-primary); border-radius: 10px;
background: transparent; color: var(--mg-primary);
font-size: 14px; font-weight: 700;
transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pd-rev-send:disabled { opacity: .5; cursor: default; }
.pd-rev-send.is-loading i { animation: pdRevSpin .8s linear infinite; }
@keyframes pdRevSpin { to { transform: rotate(360deg); } }
.pd-rev-msg {
display: flex; align-items: center; justify-content: center; gap: 4px;
min-height: 18px; margin: 2px 0;
font-size: 11px; color: var(--mg-text-soft, #555);
opacity: 0; transition: opacity .4s ease;
}
.pd-rev-msg i { color: var(--mg-primary); }
.pd-rev-msg.is-shown { opacity: 1; }
.pd-rev-done { margin-top: 10px; }
.pd-rev-done-lbl {
display: flex; align-items: center; justify-content: center; gap: 6px;
margin: 0;
font-size: 12px; line-height: 1.5; color: var(--mg-text-soft, #555);
}
.pd-rev-done-lbl i { color: var(--mg-primary); font-size: 13px; }
.pd-rev-mine {
margin-top: 8px; padding: 8px 12px;
border: 1px dashed var(--mg-border, rgba(0,0,0,.18)); border-radius: 10px;
text-align: center; opacity: .85;
}
.pd-rev-mine .pd-rev-stars { margin-left: 0; }
.pd-rev-mine .pd-rev-text { margin-top: 4px; }
@media (max-width: 991px) {
.pd-rev { padding: 0 9px; }
}
