/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    font-size: 1em;
    margin-top: 60px; /* Adjust based on top-bar height */
    background-color: #cfc0ac
}

.top-bar {
    background-color: #006e79;
    color: white;
    padding: 10px 20px;
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Example height */
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery-container {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.image-list-container {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
}

.image-section-title {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.5em;
    font-weight: bold;
    font-family: serif;
    color: #006e79;
    border-bottom: 4px solid #e0e0e0;
    padding-bottom: 0.5em;
    width: 100%;
    display: block;
}

.image-caption {
  font-size: 1.1em;
  font-family: serif;
  color: #666;
  text-align: center;
}

.landscape-image-item img {
  aspect-ratio: 80 / 58; /* Maintain square aspect ratio for images */
  max-width: 100%;
  height: 100%;
  width: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  display: block; /* Remove extra space below image */
  object-fit: cover; /* Cover the area, cropping if necessary */
}

.portrait-image-item img {
  aspect-ratio: 58 / 80; /* Maintain square aspect ratio for images */
  max-width: 100%;
  height: 100%;
  width: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  display: block; /* Remove extra space below image */
  object-fit: cover; /* Cover the area, cropping if necessary */
}

.portrait-image-section-container {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(245px, 2fr) );
  gap: 20px;
  row-gap: 30px;
  margin-bottom: 2em;
  width: 100%;
}

.landscape-image-section-container {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(300px, 2fr) );
  gap: 20px;
  row-gap: 30px;
  margin-bottom: 2em;
  width: 100%;
}

.check-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(34, 197, 94, 0.85); /* green with some transparency */
    color: white;
    font-size: 2em;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 2;
}
.check-overlay.visible {
    opacity: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.1em;
    height: 100%;
}

@media (min-width: 600px) {
    .breadcrumb {
        gap: 2em;
    }
}

@media (max-width: 599px) {
    .breadcrumb {
        gap: 0.3em;
        font-size: 1em;
    }
    .breadcrumb-link {
        padding: 4px 10px;
        font-size: 0.98em;
    }
}

.breadcrumb-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    position: relative;
}

.breadcrumb-link:hover {
    background: rgba(255,255,255,0.12);
    color: #ffd700;
}

.breadcrumb-link.active {
    background: #cfc0ac;
    color: #333;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.breadcrumb-link.disabled {
    color: #888; /* Greyed out text */
    pointer-events: none; /* Disable click events */
    background: transparent; /* Ensure no background highlight on hover */
}

.breadcrumb-link.disabled:hover {
    background: transparent; /* No hover effect */
    color: #888; /* Keep text greyed out */
}

.breadcrumb-separator {
    color: #bbb;
    font-size: 1.2em;
    user-select: none;
}

.image-quantities-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 2em;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.image-quantities-container .image-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 5px 10px;
  transition: box-shadow 0.2s;
  position: relative;
}

.image-quantities-container .image-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.image-quantities-container .image-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.image-quantities-container .item-description {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
    margin-left: 0;
    text-align: left;
}

.quantity-input {
    width: 60px;
    padding: 6px 8px;
    font-size: 1em;
    border: 1.5px solid #bbb;
    border-radius: 6px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    align-self: flex-end;
}
.quantity-input:focus {
    border-color: #4f8cff;
    background: #f0f7ff;
}

.item-right-col {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-left: 18px;
    flex: 1;
    justify-content: space-between;
}

/* New: group quantity input and delete button together */
.item-actions {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Finalize (Invoice) Table Styles */
.finalize-container {
    max-width: 800px;
    margin: 2em auto 3em auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 2em 2em 2.5em 2em;
}

#finalize-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#finalize-table th, #finalize-table td {
    padding: 0.85em 1em;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.08em;
}
#finalize-table th {
    background: #f3f3f3;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}
#finalize-table tbody tr:nth-child(even) {
    background: #f6fafd;
}
#finalize-table tfoot td {
    font-size: 1.15em;
    font-weight: bold;
    background: #f3f3f3;
    border-top: 2px solid #e0e0e0;
}
#finalize-total-cost {
    color: #1a7f37;
    font-size: 1.18em;
}

#place-order-button.button, #save-order-button.button {
    display: inline-block;
    width: 48%;
    padding: 1em 0;
    font-size: 1.15em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(34,197,94,0.08);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, box-shadow 0.2s;
}
#place-order-button.button {
    background: linear-gradient(90deg, #4f8cff 0%, #1a7f37 100%);
    color: #fff;
    margin-right: 0.5em;
}
#place-order-button.button:hover {
    background: linear-gradient(90deg, #1a7f37 0%, #4f8cff 100%);
    box-shadow: 0 4px 16px rgba(34,197,94,0.13);
}
#save-order-button.button {
    background: #bbb;
    color: #222;
    margin-left: 0.5em;
}
#save-order-button.button:hover {
    background: #888;
    color: #fff;
}
.finalize-actions {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-top: 1.5em;
}

.finalize-container h2 {
    text-align: center;
    margin-bottom: 0.5em;
    color: #1a7f37;
    font-size: 1.5em;
    font-weight: 700;
}
.finalize-container p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5em;
    font-size: 1.08em;
}

@media (max-width: 700px) {
    .finalize-container {
        padding: 1em 0.5em 1.5em 0.5em;
    }
    #finalize-table th, #finalize-table td {
        padding: 0.6em 0.4em;
        font-size: 0.98em;
    }
    #place-order-button.button, #save-order-button.button {
        font-size: 1em;
        padding: 0.8em 0;
        width: 100%;
        margin: 0;
    }
    .finalize-actions {
        flex-direction: column;
        gap: 0.7em;
    }
}
