/* Opt Story storefront. Keep merchandise photography in its original colours. */
:root {
  --os-paper: #f8f6ee;
  --os-surface: #fffdf7;
  --os-sage: #dfe7d6;
  --os-ink: #202d26;
  --os-muted: #526156;
  --os-pine: #1c493a;
  --os-deep: #123528;
  --os-line: #cbd1c2;
  --os-edge: #7c897a;
  --os-bronze: #805b32;
  --bs-body-color: var(--os-ink);
  --bs-body-color-rgb: 32, 45, 38;
  --bs-body-bg: var(--os-paper);
  --bs-body-bg-rgb: 248, 246, 238;
  --bs-primary: var(--os-pine);
  --bs-primary-rgb: 28, 73, 58;
  --bs-primary-text-emphasis: var(--os-deep);
  --bs-primary-bg-subtle: var(--os-sage);
  --bs-primary-border-subtle: var(--os-line);
  --bs-secondary-color: var(--os-muted);
  --bs-secondary-bg: var(--os-sage);
  --bs-tertiary-bg: #edf0e5;
  --bs-link-color: var(--os-pine);
  --bs-link-color-rgb: var(--bs-primary-rgb);
  --bs-link-hover-color: var(--os-deep);
  --bs-link-hover-color-rgb: 18, 53, 40;
  --bs-border-color: var(--os-line);
  --bs-focus-ring-color: rgba(28, 73, 58, .24);
}
body { font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--os-ink); }
#content > h1, #content > h2, #product-info h1 {
  font-family: Georgia, serif;
  letter-spacing: -.035em;
}
#top {
  margin-bottom: 0;
  padding-bottom: 0;
  background: var(--os-sage);
  border-bottom: 1px solid var(--os-line);
}
#top .list-inline-item > a,
#top .list-inline-item .dropdown > a,
#top .list-inline-item .dropdown > span { color: var(--os-pine); }
#container > header { padding: 14px 0 9px; }
#logo h1 { margin: 0; }
#logo h1 a {
  color: var(--os-pine);
  font: 600 clamp(31px, 4vw, 50px)/1 Georgia, serif;
  letter-spacing: -.065em;
}
#container > header form.input-group { border-bottom: 1px solid var(--os-edge); }
#container > header form.input-group > * {
  color: var(--os-pine);
  background: transparent;
  border: 0;
  border-radius: 0;
}
#container > header form.input-group:focus-within { border-color: var(--os-pine); }
#cart .dropdown-toggle {
  background: transparent;
  color: var(--os-pine);
  border: 1px solid var(--os-edge);
  box-shadow: none;
}
#cart .dropdown-toggle:is(:hover, .show) { background: var(--os-sage); }
#cart .dropdown-menu, .dropdown-menu {
  --bs-dropdown-bg: var(--os-surface);
  --bs-dropdown-link-hover-bg: var(--os-sage);
  --bs-dropdown-link-active-bg: var(--os-pine);
  background-color: var(--os-surface);
}
#menu {
  background-image: none;
  border: none;
  border-radius: 0;
  padding: 3px 15px;
  margin-bottom: 12px;
}
#menu #category, #menu .navbar-nav > li > a, #menu .navbar-toggler i {
  color: var(--os-surface);
  text-shadow: none;
}
#menu #category { font-weight: 500; letter-spacing: .025em; }
#menu .navbar-toggler { border: 0; }
#menu .navbar-nav > li > a:is(:hover, :focus) { background: var(--os-deep); }
.breadcrumb {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--os-line);
  border-radius: 0;
  row-gap: .4rem;
}
.breadcrumb > li.breadcrumb-item { white-space: normal; overflow-wrap: anywhere; text-shadow: none; }

/* Category navigation on the home page: a sage feature and two neutral portraits. */
.os-buy { margin: 22px 0 42px; }
.os-buy header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 18px;
}
.os-buy h2 {
  margin: 0;
  color: var(--os-pine);
  font: 400 clamp(36px, 4.5vw, 64px)/1.05 Georgia, serif;
  letter-spacing: -.055em;
}
.os-buy header a { text-decoration: underline; text-underline-offset: .28em; }
.os-buy nav {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 24px);
}
.os-buy nav a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  color: var(--os-pine);
  text-decoration: none;
}
.os-buy nav a:hover span { text-decoration: underline; text-underline-offset: .18em; }
.os-buy nav img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 23%;
}
.os-buy nav span {
  padding: 10px 0 0;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.2;
}
.os-buy nav a:first-child {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  background: var(--os-sage);
}
.os-buy nav a:first-child img {
  grid-area: 1 / 2;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-position: center;
}
.os-buy nav a:first-child span {
  grid-area: 1 / 1;
  align-self: end;
  padding: clamp(13px, 1.7vw, 28px);
  font: 400 clamp(27px, 2.75vw, 47px)/1.04 Georgia, serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.os-buy nav a:first-child span::after {
  content: "";
  display: block;
  width: 19px;
  height: 12px;
  margin-top: 18px;
  background: linear-gradient(currentColor, currentColor) left center/18px 1px no-repeat,
    linear-gradient(45deg, transparent 46%, currentColor 47% 55%, transparent 56%) right top/7px 7px no-repeat,
    linear-gradient(-45deg, transparent 46%, currentColor 47% 55%, transparent 56%) right bottom/7px 7px no-repeat;
}

/* Bootstrap has component-specific state colours in addition to its global tokens. */
.btn-primary {
  --bs-btn-color: var(--os-surface);
  --bs-btn-bg: var(--os-pine);
  --bs-btn-border-color: var(--os-pine);
  --bs-btn-hover-color: var(--os-surface);
  --bs-btn-hover-bg: var(--os-deep);
  --bs-btn-hover-border-color: var(--os-deep);
  --bs-btn-active-color: var(--os-surface);
  --bs-btn-active-bg: var(--os-deep);
  --bs-btn-active-border-color: var(--os-deep);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-disabled-bg: var(--os-muted);
  --bs-btn-disabled-border-color: var(--os-muted);
}
.btn-light {
  --bs-btn-color: var(--os-pine);
  --bs-btn-bg: var(--os-surface);
  --bs-btn-border-color: var(--os-line);
  --bs-btn-hover-bg: var(--os-sage);
  --bs-btn-hover-border-color: var(--os-edge);
  --bs-btn-active-bg: var(--os-sage);
  --bs-btn-active-border-color: var(--os-edge);
}
.list-group {
  --bs-list-group-bg: var(--os-surface);
  --bs-list-group-active-bg: var(--os-pine);
  --bs-list-group-active-color: var(--os-surface);
  --bs-list-group-active-border-color: var(--os-pine);
}
.pagination {
  --bs-pagination-active-bg: var(--os-pine);
  --bs-pagination-active-border-color: var(--os-pine);
  --bs-pagination-focus-box-shadow: 0 0 0 .16rem var(--bs-focus-ring-color);
}
.accordion {
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .16rem var(--bs-focus-ring-color);
  --bs-accordion-active-color: var(--os-pine);
  --bs-accordion-active-bg: var(--os-sage);
}
.form-control:not(:disabled), .form-select:not(:disabled), .card {
  background-color: var(--os-surface);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--os-edge);
  box-shadow: 0 0 0 .16rem var(--bs-focus-ring-color);
}
.form-check-input:checked { background-color: var(--os-pine); border-color: var(--os-pine); }
.form-control::placeholder, .price-tax, .price-old { color: var(--os-muted); }
.product-thumb {
  background: var(--os-surface);
  border-color: var(--os-line);
}
.product-thumb h4 a, .price, .price-new { color: var(--os-pine); }
.product-thumb .button button { background: var(--os-surface); color: var(--os-pine); }
.product-thumb .button button:hover { background: var(--os-sage); color: var(--os-deep); }
.rating .fa-star, .rating .fa-star + .fa-star { color: var(--os-bronze); }
#product-info h1 { font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.15; overflow-wrap: anywhere; }
#product-info [data-stock-kind] {
  display: table;
  padding: .3rem .65rem;
  margin: .35rem 0;
  border-radius: .35rem;
}
#product-info [data-stock-kind="in_stock"] { background: var(--os-sage); color: var(--os-deep); }
#product-info [data-stock-kind="preorder"] { background: #f3e7ce; color: #67441c; }
#product-info #button-cart, #product-info #optstory-login-to-order { min-height: 44px; }

footer { border: 0; background: var(--os-deep); color: var(--os-sage); }
footer h5, footer a:hover { color: var(--os-surface); }
footer a { color: #e0e7d9; }
footer hr { border-color: #698172; }
body :is(a, button, [role="button"]):focus-visible {
  outline: 2px solid var(--os-bronze) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--os-surface);
}

@media (max-width: 767.98px) {
  #container > header .row { align-items: center; }
  #container > header .row > div:first-child { width: 51%; }
  #container > header #cart { width: 49%; margin-bottom: 0 !important; }
  #cart .btn-lg { padding: 9px 4px; font-size: 12px; }
  #container > header .col-md-5 { order: 3; margin-top: 9px; }
  #container > header .input-group { margin-bottom: 0 !important; }
  #logo { text-align: left; margin: 0; }
  .os-buy { margin-top: 18px; }
  .os-buy header { margin-bottom: 14px; }
  .os-buy nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .os-buy nav a:first-child { grid-column: 1 / -1; }
  .os-buy nav a:first-child img { height: auto; aspect-ratio: 3 / 4; }
  .os-buy nav a:first-child span { padding: clamp(12px, 4vw, 24px); }
}
@media (max-width: 575.98px) {
  #product-info #input-quantity { min-height: 44px; }
  #product-info #button-cart { flex: 0 0 100%; border-radius: .4rem; margin: .5rem 0 0; }
}
