/*
Theme Name: Queens & Bees Harvest Shop
Template: queens-bees
Version: 1.0.0
Text Domain: queens-bees-harvest
*/
header .label-brand-logo {
  display: block;
  height: 82px;
  width: auto;
}
/* The label tile contains one upright thistle between two half hexagons. */
.label-pattern-study {
  --motif-height: 25px;
  --motif-width: calc(var(--motif-height) * 1.6);
  --spring: #c68b0b;
  --summer: #cf641d;
  --pollen: #bb304a;
  --forest-spring: #247151;
  --forest-summer: #295e89;
  --heather: #834674;
  --colour-width: var(--motif-width);
  display: grid;
  align-items: center;
  height: calc(var(--motif-height) + 12px);
  background: #fff;
}
.label-pattern-study::before {
  content: "";
  height: var(--motif-height);
  background-image: linear-gradient(to right,
    var(--spring) 0 16.6667%, var(--summer) 16.6667% 33.3333%,
    var(--pollen) 33.3333% 50%, var(--forest-spring) 50% 66.6667%,
    var(--forest-summer) 66.6667% 83.3333%, var(--heather) 83.3333% 100%);
  background-size: calc(6 * var(--colour-width)) 100%;
  background-position: calc(-0.25 * var(--motif-width)) center;
  -webkit-mask: url("assets/thistle-hexagon-repeat.png") repeat-x left center / var(--motif-width) 100%;
  mask: url("assets/thistle-hexagon-repeat.png") repeat-x left center / var(--motif-width) 100%;
}
/* Preview the second arrangement via a direct link to the divider. */
#alternating-colours:target {
  --colour-width: calc(var(--motif-width) / 2);
  scroll-margin-top: 45vh;
}
@media (max-width: 600px) {
  header .label-brand-logo { height: 64px; }
  .label-pattern-study { --motif-height: 20px; }
}

.honey-selection {
  position: relative;
  margin: 3rem 0 0;
  padding: clamp(1rem, 4vw, 2.8rem);
  background: #faf6ee;
  border: 1px solid #e6dccb;
  border-radius: 5px;
}
.honey-selection .selection-border {
  --motif-height: clamp(14px, 1.4vw, 18px);
  position: absolute;
  inset: 0 0 auto;
  height: var(--motif-height);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.honey-selection > h2 { padding-top: .75rem; }
.honey-selection > p { max-width: 58ch; margin: .65rem 0 1.25rem; font-size: 1rem; }
.selection-sizes { display: inline-flex; gap: .25rem; padding: .2rem; border: 1px solid #cfbfaa; border-radius: 2rem; }
.selection-sizes button { min-height: 44px; border: 0; border-radius: 2rem; padding: .45rem 1rem; background: transparent; color: #493126; }
.selection-sizes button[aria-pressed="true"] { background: #493126; color: white; }
#selection-slots { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.25rem 0; }
#selection-slots label { min-width: 0; display: grid; gap: .35rem; padding: 1rem; background: #fff; border: 1px solid #e6dccb; border-radius: 4px; }
#selection-slots img { width: 100%; height: clamp(95px,11vw,148px); object-fit: contain; }
#selection-slots span { font-size: .875rem; color: #614f40; }
#selection-slots select {
  width: 100%; min-width: 0; min-height: 44px; appearance: none; font: inherit; color: #382a20;
  padding: .45rem 1.5rem .45rem .45rem; border: 1px solid #cdbda9; border-radius: 3px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23554436' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .55rem center;
}
.selection-order { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid #dccfbd; padding-top: 1rem; }
.selection-order output { margin-left: .4rem; font-weight: bold; }
.selection-order .add { font-size: 1rem; min-height: 44px; }
@media(max-width: 800px) {
  #selection-slots { grid-template-columns: 1fr; gap: .5rem; }
  #selection-slots label { grid-template-columns: min(15%,64px) minmax(0,1fr); align-items: center; gap: 0 .65rem; padding: .55rem; }
  #selection-slots img { grid-row: span 2; height: 64px; }
}
@media(max-width: 520px) {
  .selection-order .add { width: 100%; }
  .selection-sizes button { font-size: .9375rem; }
}

/* Silhouettes follow the original product photographs at both thumbnail resolutions. */
img[src$="/forest-spring-honey-card-360.webp"] {
  --jar-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cpolygon points='312,74 264,77 231,82 176,96 163,102 160,106 159,124 160,125 160,143 162,150 170,155 182,157 184,162 185,173 194,184 194,188 191,193 182,197 165,201 160,204 158,208 158,222 159,223 159,362 160,363 160,401 161,402 161,439 162,440 162,521 163,522 161,559 166,574 180,589 197,600 213,607 250,616 289,621 336,625 368,625 424,620 449,616 479,609 503,601 526,590 539,580 546,572 549,566 548,562 552,557 554,552 553,545 554,544 554,240 555,239 556,224 558,221 561,206 559,203 554,201 531,196 527,192 527,187 532,175 532,167 534,159 553,156 560,152 562,149 561,112 557,106 550,100 527,90 514,86 465,78 409,74'/%3E%3C/svg%3E");
}
img[src$="/forest-summer-honey-card-360.webp"] {
  --jar-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cpolygon points='354,73 293,75 243,80 190,93 180,96 167,102 162,107 162,147 163,151 169,155 185,158 187,172 190,178 196,184 196,191 194,194 190,196 173,199 165,202 162,204 159,212 162,231 161,250 162,251 162,277 163,278 163,298 164,299 164,363 163,364 164,409 165,412 166,514 167,515 167,538 165,546 165,556 167,564 173,575 185,586 194,592 211,600 238,609 280,619 339,625 373,625 406,623 436,619 470,611 499,601 519,591 533,581 544,569 552,550 552,410 551,409 551,394 552,393 552,344 551,340 552,339 552,325 551,322 552,321 552,283 551,282 552,281 552,237 555,222 557,219 558,210 557,206 553,202 531,196 527,191 527,188 533,173 534,164 536,160 553,155 558,149 559,121 560,120 559,106 553,100 537,92 497,82 448,76 385,73'/%3E%3C/svg%3E");
}
img[src$="/heather-honey-card-360.webp"] {
  --jar-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cpolygon points='315,74 227,80 202,84 182,90 175,94 168,96 158,106 158,122 159,123 159,135 161,145 162,147 166,149 183,152 185,168 192,175 195,183 194,186 188,191 167,195 160,198 158,200 156,206 157,222 158,223 158,265 159,266 159,284 158,285 158,323 159,324 159,335 158,336 158,411 159,412 159,451 160,452 160,485 161,486 161,515 160,516 160,533 158,540 158,551 160,562 164,570 173,580 190,592 211,602 236,610 268,617 295,621 332,624 386,624 426,620 460,614 493,604 511,596 531,585 547,571 552,561 551,548 555,540 554,535 555,534 555,520 556,519 557,300 558,299 557,295 557,230 558,229 558,221 561,212 561,203 560,200 552,193 531,188 528,181 533,152 538,148 560,146 563,143 562,106 554,97 545,92 526,85 513,82 471,77 415,74'/%3E%3C/svg%3E");
}
img[src$="/honey-with-pollen-card-360.webp"] {
  --jar-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cpolygon points='336,73 259,76 225,80 194,86 176,91 164,98 162,102 162,142 163,145 167,150 184,154 187,169 192,174 195,180 195,184 192,188 168,194 163,199 162,202 162,212 165,223 165,287 166,288 165,292 166,294 166,312 165,313 166,318 166,327 165,328 166,334 165,336 166,338 166,530 164,543 164,559 169,572 175,580 194,594 216,604 234,610 264,617 290,621 329,624 379,624 407,622 437,618 461,613 483,606 510,593 532,579 540,571 548,559 549,545 550,544 548,541 548,268 549,267 549,228 550,227 549,226 553,213 554,203 550,196 540,192 527,189 525,186 525,181 532,156 553,152 558,147 557,142 557,132 558,131 557,130 557,107 555,102 549,96 542,92 515,84 472,78 385,73'/%3E%3C/svg%3E");
}
img[src$="/spring-honey-card-360.webp"] {
  --jar-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cpolygon points='301,74 255,77 221,82 197,88 173,96 168,98 159,105 158,108 158,134 159,135 160,151 168,155 182,157 184,159 186,174 194,182 195,187 193,191 187,195 162,202 158,208 158,222 160,231 161,325 162,326 161,401 162,402 162,419 163,420 163,436 164,437 164,475 165,476 165,549 164,550 164,561 166,567 172,578 182,587 199,598 212,604 232,611 260,618 284,622 306,624 349,624 420,618 468,609 492,602 524,588 536,580 545,569 547,565 545,563 551,556 553,551 552,545 552,536 553,535 552,534 552,267 553,266 553,230 557,218 557,209 552,202 530,195 528,192 528,186 532,179 534,170 539,161 552,157 561,151 562,112 559,105 550,98 523,88 508,84 457,77 408,74'/%3E%3C/svg%3E");
}
img[src$="/summer-honey-card-360.webp"] {
  --jar-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cpolygon points='361,73 279,76 245,80 197,91 173,98 164,106 163,109 163,144 164,147 166,149 187,154 189,158 190,170 196,178 198,184 197,188 195,190 190,192 168,196 162,200 160,203 160,217 162,226 162,337 163,338 163,405 164,406 164,453 165,454 165,499 166,500 166,526 164,538 165,557 171,569 181,580 199,592 220,602 247,611 278,618 331,624 385,624 410,622 442,617 462,612 489,603 519,589 533,580 545,568 551,557 550,554 556,540 555,527 556,526 557,470 556,469 556,441 555,440 555,224 558,217 559,206 557,201 552,197 530,191 527,187 527,185 532,171 532,161 534,156 556,151 560,148 560,118 559,112 555,104 550,100 529,90 517,86 486,80 449,76 374,73'/%3E%3C/svg%3E");
}
.shop .card-image, #selection-slots .selection-photo {
  display: block;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cdefs%3E%3CradialGradient id='s'%3E%3Cstop stop-color='%23302921' stop-opacity='.32'/%3E%3Cstop offset='.55' stop-color='%23302921' stop-opacity='.15'/%3E%3Cstop offset='1' stop-color='%23302921' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='360' cy='619' rx='224' ry='27' fill='url(%23s)'/%3E%3C/svg%3E") no-repeat center / contain;
}
.shop .card-image img, #selection-slots img, .basket-item img {
  -webkit-mask: var(--jar-outline) center / contain no-repeat;
  mask: var(--jar-outline) center / contain no-repeat;
}
#selection-slots .selection-photo img { display: block; }
@media(max-width: 800px) {
  #selection-slots .selection-photo { grid-row: span 2; }
}

.honey-selection > .selection-delivery-note { font-size: .95rem; color: #493126; }
.selection-prices { width: min(100%, 23rem); margin: 0; }
.selection-prices div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.selection-prices dd { margin: 0; font-variant-numeric: tabular-nums; }
.selection-prices div:last-child { margin-top: .3rem; padding-top: .45rem; border-top: 1px solid #dccfbd; font-weight: bold; }

.jar-card-border {
  --motif-height: clamp(13px, 1.25vw, 17px);
  height: var(--motif-height);
}
.jar-card-border[data-honey="spring-honey"] { --jar-colour: var(--spring); }
.jar-card-border[data-honey="summer-honey"] { --jar-colour: var(--summer); }
.jar-card-border[data-honey="honey-with-pollen"] { --jar-colour: var(--pollen); }
.jar-card-border[data-honey="forest-spring-honey"] { --jar-colour: var(--forest-spring); }
.jar-card-border[data-honey="forest-summer-honey"] { --jar-colour: var(--forest-summer); }
.jar-card-border[data-honey="heather-honey"] { --jar-colour: var(--heather); }
.jar-card-border::before { background: var(--jar-colour); }

.hermitage-origin { margin: 0; align-self: start; }
.hermitage-origin img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hermitage-origin figcaption { margin-top: .55rem; font-size: .94rem; line-height: 1.5; color: #493126; }

@media (max-width: 580px) {
  .selection-sizes { display: flex; width: fit-content; max-width: 100%; }
  #six-jar-delivery { white-space: normal; }
}

.hero-shop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.25rem;
  margin: 1.25rem 0 .75rem;
}
.full-scene .hero-shop-actions .warm-shop { margin: 0; }
.hero-selection { color: #493126; }
.hero-selection a {
  display: inline-block;
  padding: .25rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.hero-selection a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hero-selection span { display: block; font-size: .8125rem; line-height: 1.4; }
.card .price small { display: inline; margin: 0; font-size: .8125rem; }
@media (max-width: 580px) {
  .hero-shop-actions { margin-top: .875rem; gap: .5rem 1rem; }
}

.honey-selection [hidden]{display:none!important}

.site-footer .label-brand-logo { width: auto; height: 82px; }
