/* ===========================
   DISPLAY PAGE LAYOUT
   =========================== */

.product-display {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding-left: 0px;
    margin-top: 30px;
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90px;
    flex-shrink: 0;
}

.thumbs img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ddd;
    cursor: pointer;
}

.thumbs img.active {
    border-color: #000;
}

.main-image {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
}

.main-image img {
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
}

.attributes {
    flex: 1;
    font-family: "PT Sans", Arial, sans-serif;
}

.attributes h1 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 18px;
}

.attributes table {
    width: 100%;
    border-collapse: collapse;
}

.attributes th {
    text-align: left;
    width: 40%;
    font-weight: normal;
    color: #666;
}

.attributes td {
    padding-bottom: 6px;
}

/* ===========================
   OVERLAY BASE STYLES
   =========================== */

/* overlay hidden by default; JS toggles this */
.overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: none;      /* MUST stay hidden by default */
    z-index: 9999;
    overflow: auto;     /* allow full vertical scroll when needed */
}

/* close button */
.overlay .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}

/* nav arrows */
.overlay .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    cursor: pointer;
    user-select: none;
}
.overlay .prev { left: 30px; }
.overlay .next { right: 30px; }

/* =========================================================
   BREADCRUMBS (DISPLAY PAGE MATCHING SEARCH/LIST)
   ========================================================= */

nav.breadcrumbs {
    margin: 15px 0;
    padding-left: 0px;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #a3a3a3;
}

nav.breadcrumbs a,
nav.breadcrumbs span {
    text-decoration: none;
    font-size: inherit;
    color: inherit;
    text-transform: inherit;
}

nav.breadcrumbs a:hover {
    text-decoration: underline;
    color: #000;
}

nav.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav.breadcrumbs a,
nav.breadcrumbs span {
    display: inline-flex;
    align-items: center;
}

/* Magento-like separator */
nav.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav.breadcrumbs a,
nav.breadcrumbs span {
    display: inline-flex;
    align-items: center;
}

/* Magento-style arrow with stem */
nav.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav.breadcrumbs a,
nav.breadcrumbs span {
    display: inline-flex;
    align-items: center;
}

/* Magento-style breadcrumb arrow (stem + solid triangle) */
nav.breadcrumbs .crumb-sep {
    position: relative;
    width: 14px;
    height: 10px;
    margin: 0 8px;
    flex-shrink: 0;
}

/* stem */
nav.breadcrumbs .crumb-sep::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 2px;              /* thicker stem */
    background-color: #b5b5b5;
    transform: translateY(-50%);
}

/* solid triangle head */
nav.breadcrumbs .crumb-sep::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;               /* EXACTLY where stem ends */
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #b5b5b5;
    transform: translateY(-50%);
}

/* =========================================================
   OVERLAY IMAGE CENTERING
   ========================================================= */

/* Holds big image and vertically centers it when it fits */
.overlay-center {
    display: flex;
    justify-content: center;   /* horizontal centering */
    align-items: center;       /* vertical centering */
    min-height: 100vh;
    padding-top: 60px;         /* avoids overlap with close/nav */
    padding-bottom: 120px;     /* leaves space for thumbs */
    box-sizing: border-box;
}

.overlay-center img#overlayImage {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

/* =========================================================
   OVERLAY THUMBNAILS — LEFT ALIGNED BOTTOM
   ========================================================= */

.overlay-thumbs {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    align-items: center;
    padding: 4px 0;
    background: transparent;
}

.overlay-thumbs img {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}

.overlay-thumbs img:hover {
    opacity: 1;
}

.overlay-thumbs img.active {
    border-color: #000;
    opacity: 1;
}

.attributes-bottom {
    margin-top: 40px;
}

.attributes-bottom table {
    max-width: 900px;
}

/* ===========================
   ATTRIBUTE TABLE — SMALLER TEXT
   =========================== */

/* Push right-side attributes slightly to the right */
.attributes {
    padding-left: 10px;
	margin-top: -12px;
}

.attributes-bottom {
    margin-top: 30px; /* adjust as needed: 16–32px */
}

.attributes table {
    font-size: 13px;        /* base size (smaller) */
 	line-height: 2; 
}

.attributes-bottom table {
    font-size: 13px;        /* base size (smaller) */
    line-height: 1;
	line-height: 2; 
	margin-left: 10px;
}

.attributes th {
    font-size: 13px;        /* labels slightly smaller */
    font-weight: normal;
    color: #777;
	width: 28%;
    padding-right: 12px;
    vertical-align: top;
	padding: 6px 0;
}

.attributes-bottom th {
    font-size: 13px;        /* labels slightly smaller */
    font-weight: normal;
    color: #777;
    padding-right: 12px;
    vertical-align: top;
	width: 18%;          /* was ~40% */
    white-space: nowrap; /* prevents wrapping */
}

.attributes td {
    font-size: 13px;
    color: #444;
    padding-bottom: 6px;
	padding: 6px 0;
    vertical-align: top;
}

.attributes-bottom td {
    font-size: 13px;
    color: #444;
    padding-bottom: 6px;
}

.attributes td:empty::after {
    content: '\00a0';
}

/* Preserve layout when no thumbnails exist */
.thumbs.thumbs-empty {
    visibility: hidden;   /* occupies space but not visible */
}

/* =========================================
   Display page – no image placeholder
   ========================================= */

.main-image img[src$="/media/no_image.png"] {
    transform: translate(-50px, 130px);
    opacity: 0.85;
}
