* {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.banner {
    background-color: #f5f0e8;
    color: #3a2e1f;
    margin: 0;
    padding: 8px 0;
    width: 100%;
    text-align: center;
}

.banner h1 {
    font-size: 26px;
    margin: 0;
    cursor: pointer;
}

.block-content {
    padding-left: 10px;
}

.about-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.about-split {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-photo {
    flex: 0 0 340px;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.75;
}

.about-text-full {
    max-width: 700px;
    margin: 0 auto;
}

.about-text h1 {
    margin-top: 0;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .about-split {
        flex-direction: column;
    }
    .about-photo {
        flex: 0 0 auto;
        width: 100%;
    }
}


.color-selection-box {
    display: inline-block;
}

.color-selection-box .color-box img{
    display: block;
    /*border: 2px dashed black;*/
    /*-webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);*/
}

.color-selection-box .color-box-selected img{
    outline: 2px solid black;
    outline-offset: -1px;
    display: block;
    /*border: 5px solid black;*/
    -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
}





.description-container {
    flex: 1;
}


.description-table, .description-table th, .description-table td {
    border: 1px solid black;
}


.description-panel {
    position: sticky;
    top: 0px
}

/*
.expo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.expo-item {
    min-height: 100px;
    max-height: 200px;
    width: 32%;
}

.expo-item img{
    width: 100%;
    height: auto;
}
*/

.expo-container {
  display: flex;
  flex-flow: column wrap;
  align-content: space-between;
  /* Your container needs a fixed height, and it
   * needs to be taller than your tallest column. */
  height: 2000px;
}

.expo-item {
  width: 32%;
  margin-bottom: 2%;
}

.expo-item img{
  width: 100%;
  height: auto;
}

.expo-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.expo-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4em;
  padding: 6px 4px 4px;
  color: #3a2e1f;
}

/* Re-order items into 3 rows */
.expo-item:nth-child(3n+1) { order: 1; }
.expo-item:nth-child(3n+2) { order: 2; }
.expo-item:nth-child(3n)   { order: 3; }

/* Force new columns */
.expo-container::before,
.expo-container::after {
  content: "";
  flex-basis: 100%;
  width: 0;
  order: 2;
}



.images-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.images-panel img{
    max-width: 100%;
    height: auto;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide.slide-from-right {
    display: block;
    animation: slideFromRight 0.35s ease;
}

.carousel-slide.slide-from-left {
    display: block;
    animation: slideFromLeft 0.35s ease;
}

@keyframes slideFromRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes slideFromLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 3em;
    line-height: 1;
    padding: 0.1em 0.3em;
    cursor: pointer;
    user-select: none;
    border-radius: 3px;
    transition: background 0.2s;
    z-index: 1;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
    text-align: center;
    padding: 8px 0 4px;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #3a2e1f;
}


.lining-nav {
    display: none;
}

/* Swatch carousel (colors + linings) */

.swatch-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.swatch-viewport {
    flex: 1;
    overflow: hidden;
}

.swatch-track {
    display: flex;
    transition: transform 0.3s ease;
}

.swatch-item {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 4px;
    cursor: pointer;
}

.swatch-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.swatch-item.color-box-selected img,
.swatch-item.lining-box-selected img {
    outline: 2px solid #3a2e1f;
    outline-offset: -1px;
    box-shadow: 0 0 6px rgba(0,0,0,0.45);
}

.swatch-btn {
    background: none;
    border: 1px solid #c8b89a;
    color: #3a2e1f;
    font-size: 1.4em;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.swatch-btn:hover:not(:disabled) {
    background: #f5f0e8;
}

.swatch-btn:disabled {
    opacity: 0.25;
    cursor: default;
}


.lining-selection-box {
    display: inline-block;
}

.lining-selection-box .lining-box img{
    display: block;
    /*border: 2px dashed black;*/
    /*-webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);*/
}

.lining-selection-box .lining-box-selected img{
    outline: 2px solid black;
    outline-offset: -1px;
    display: block;
    /*border: 5px solid black;*/
    -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 1);
}




.main-content-panel {
    display: flex;
    flex-direction: horizontal
}

.itemPriceBase {
    display: block;
}

.itemPriceAdd {
    display: none;
}

/* Item page — Option A layout */

.item-page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
}

.item-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.item-images {
    flex: 0 0 55%;
    position: sticky;
    top: 80px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.item-details-scroll {
    flex: 1;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin: 0 0 6px;
    color: #3a2e1f;
}

.item-date {
    font-style: italic;
    font-size: 0.9em;
    color: #888;
    margin: 0 0 20px;
}

.item-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: #3a2e1f;
}

.item-meta-divider {
    border: none;
    border-top: 1px solid #e0d8cc;
    margin: 20px 0;
}

.item-meta-row {
    display: flex;
    gap: 32px;
}

.item-meta-col {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.6;
}

.item-meta-col h3 {
    margin: 0 0 8px;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
}

.item-option-section h3 {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
    margin: 0 0 10px;
}

.item-choice-label {
    margin: 8px 0 0;
    font-size: 0.9em;
    color: #555;
}

.item-accessory {
    margin-bottom: 12px;
}

.item-accessory label {
    font-size: 0.95em;
    cursor: pointer;
}

.item-accessory-desc {
    margin-top: 4px;
    padding-left: 20px;
    font-size: 0.9em;
    color: #666;
}

.item-cta {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e0d8cc;
    padding: 16px 0 8px;
    margin-top: 24px;
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.item-price-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
}

.item-price-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    color: #3a2e1f;
}

.item-buy-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #3a2e1f;
    color: #fff;
    border: none;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.item-buy-btn:hover:not(:disabled) {
    background: #5a4a35;
}

.item-buy-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.item-expo-message {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.item-back-link {
    display: block;
    font-size: 0.85em;
    color: #7a6a55;
    text-decoration: none;
    text-align: center;
}

.item-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .item-layout {
        flex-direction: column;
    }
    .item-images {
        flex: 0 0 auto;
        width: 100%;
        position: static;
    }
    .item-cta {
        position: static;
    }
}


.sidenav {
  height: 0px;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: grey; /*#99ccff;*/
  overflow-y: hidden;
  transition: 0.5s;
  padding-top: 0px;
}

.sidenav a {
  padding: 0 0 0 0;/*8px 8px 8px 8px;*/
  text-decoration: none;
  font-size: 1.5em;
  color: #fff;
  text-shadow: 2px 2px #000;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  text-shadow: 1px 1px #000;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}


.topnav {
    display: flex;
    align-items: center;
    background-color: #f5f0e8;
    margin: 0;
    padding: 6px 24px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 99;
    box-sizing: border-box;
    box-shadow: 0 3px 4px -1px rgba(0,0,0,0.1);
}

.topnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.topnav a {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #3a2e1f;
    position: relative;
}

.topnav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #3a2e1f;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.topnav a:hover::after,
.topnav a.active::after {
    transform: scaleX(1);
}

.topnav a.active {
    font-weight: 700;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: #c8b89a;
    margin: 0 12px;
    flex-shrink: 0;
}

.topnav .menu {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topnav .logo {
    opacity: 0.0;
    transition: 1s;
    margin-right: 16px;
    flex-shrink: 0;
}

#mainBody {
  transition: margin-top .5s;
  padding-top: 0px;
  margin: 0px;
}




/*
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #99ccff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 25px;
}

.sidenav a {
  padding: 8px 8px 8px 8px;
  text-decoration: none;
  font-size: 1.5em;
  color: #fff;
  text-shadow: 2px 2px #000;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  text-shadow: 1px 1px #000;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}


#mainBody {
  transition: margin-left .5s;
  padding-left: 0px;
  margin: 0px;
}

*/



@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}