/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}
html {
    font-size: 16;}
body {
    display: block;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #ffffff;}

/* ---------- Top Bar ---------- */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 50px;
    gap: 10px;
    background: #2E2E2E;
    color: white;}
.top-bar > * {
    font-size: clamp(13px, 2vw, 16px);}


/* ---------- Container ---------- */
.container {
    display: block;
    grid-template-areas:
        "header header header"
        "content content content"
        "footer footer footer";
    grid-template-columns: 7vw 86vw 7vw;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;}


/* ---------- Header ---------- */
.header {
    grid-area: header;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem;
    font-size: 1.5rem;
    background: #ffffff;
    height: auto;
    width: auto;}
.header img {
    display: block;
    position: relative;
    z-index: 2;
    height: 100px;
    width: auto;
    margin-left: clamp(10px, 7vw, 300px);}
.header h1 {
    font-family: "Playfair Display", serif;
    color: #333;
    text-decoration: underline;
    white-space: nowrap;
    margin-right: 160px;}
.header::after {
    content: "";
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 7px;
    background: #064B03;
    z-index: 1;}
.logo {
    height: 150px;
    width: auto;}
@media(max-width: 896px) {
    .header {
        justify-content: center;
    }

    .header h1 {
        margin-right: 0px;
    }}


/* ---------- Shop Page ---------- */
.main-page {
    display: flex;
    height: 100%;
    width: 100vw;
    justify-content: center;}
.content {
    grid-area: content;
    padding: 1rem;
    background-color: #f0eaea;
    border: 2px solid #064B03;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    max-width: 1450px;
    margin-left: 20px;
    margin-right: 20px;
    align-items: flex-start;}
.shop-back-button {
    height: 25px;
    width: 100px;
    margin-right: 1418px;
    margin-bottom: 10px;
    background: none;       /* Remove default button background */
    border: none;           /* Remove default border */
    padding: 0;             /* Remove default padding */
    margin: 0;              /* Remove default margin */           /* Text color */
    cursor: pointer;        /* Show pointer on hover */
    font-size:inherit;}
.shop-back-button:hover {
    color: grey;}
.sidebar-left {
    display: flex;
    flex-direction: column;
    width: 280px;
    padding: 1rem;
    gap: 5px;
    background-color: #ffffff;}
.breadcrumb {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-align: left;}
.breadcrumb span {
    cursor: pointer;
    color: #0077cc;
    padding: 3px 6px;
    border-radius: 4px;}
.breadcrumb span:hover {
    background: #e0e0e0;}
.breadcrumb .sep {
    margin: 0 5px;
    color: #666;}
.shop-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;}


@media(max-width: 1980px) {
    .content {
        width: 1450px;
    }
    .shop-back-button {
        margin-right: 1385px;
    }}
@media(max-width: 1587px) {
    .content {
        width: 1230px;
    }
    .shop-back-button {
        margin-right: 1165px;
    }}
@media(max-width: 1260px) {
    .content {
        width: 1000px;
    }
    .shop-back-button {
        margin-right: 934px;
    }}
@media(max-width: 1034px) {
    .content {
        width: 780px;
    }
    .shop-back-button {
        margin-right: 715px;
    }}
@media(max-width: 810px) {
    .content {
        width: 550px;
    }
    .shop-back-button {
        margin-right: 484px;
    }}
@media(max-width: 584px) {
    .content {
        width: 310px;
    }
    .shop-back-button {
        margin-right: 245px;
    }
    .header h1 {
        font-size: 2rem;
    }}

@media(max-width: 425px) {
    .sidebar-left {
        width: 100%;
    }}


/* ---------- Shop Items ---------- */
.search-bar {
    margin-left: 10px;
    margin-right: 10px;}
.item-sort-select {
    margin-left: 10px;
    margin-right: 10px;
    width: 200px;}
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content:left;
    padding: 10px;}
.item {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 3px;
    margin: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;}
.item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);}
.item img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 8px; }
.item p {
    font-size: 16px;
    margin: 0;
    color: black;}
@media(max-width: 584px) {
    .shop-container {
        justify-content: center;
    }}


/* ---------- Dropdown (Nested UL) ---------- */
.all-category-button {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;}
.all-category-button:hover, 
.all-category-button.active {
    background-color: #f0f0f0;
    font-weight: bold;}
.category-button {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: left;
    text-wrap: wrap;
    font-size: 1rem;}
.category-button:hover, 
.category-button.active {
    background-color: #f0f0f0;
    font-weight: bold;}
.category-dropdown:hover > .cd-menu,
.category-dropdown:focus-within > .cd-menu {
    display: block;}


/* ---------- ITEM PAGE LAYOUT ---------- */
.item-page {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    padding: 20px;
    text-align: left;
    background: #f7f7f7}
.product-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;}
.product-left img {
    width: 250px;
    max-height: 250px;
    object-fit: contain;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    border-radius: 6px;}
.product-right {
    flex: 1;}
.product-right h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;}
.item-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.4;}
.table-title {
    margin: 20px 0 10px;
    font-size: 1.4rem;
    color: #222;}
.item-desc {
    white-space: pre-line;
    line-height: 1.3;}
.sku-thumb {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border: 1px solid #ccc;
    background: #fff;
    padding: 4px;
    border-radius: 4px;}
.special-order {
    font-size: 1.05rem;
    color: green;
    font-weight: bold;}
.out-of-stock {
    font-size: 1.05rem;
    color: red;
    font-weight: bold;}
.itemTable {
    width: 100%;
    border-collapse: collapse;}
td.chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 1.2rem;
    font-weight: bold;}
.main-e-row {
    cursor: pointer;}
.main-row:hover {
    background-color: #e0e0e0;}

.main-row.even {
    background-color: #ffffff; 
}
.main-row.odd {
    background-color: #ffffff; 
}
.extended-row {
    display: none;
    font-style: italic;
}
.extended-row {
    display: none;

    font-style: italic;}
.back-button-row {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    text-align: left;
    background: #f7f7f7;
    display: flex;
    justify-content: flex-start;}
.item-back-button {
    width: 200px;
    text-decoration: none;
    color: black;}
.item-back-button:hover {
    color: grey;}
.item-pic {
    height: 125px;
    width: 125px;}
.expand-collapse-button {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 2px;}


/* ---------- TABLE ---------- */
#itemTable {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    font-size: 1.1rem;}
#itemTable th,
#itemTable td {
    padding: 10px;

    vertical-align: top;}
#itemTable th {
    text-align: left;
    background: #eee;
    border-bottom: 2px solid #999;}

/* Main row separators */
.main-row td {
    border-top: 3px solid rgb(159, 159, 159);
}



    /*--------Item Page Pic Zoom----------*/
.item-pic {
  max-width: 125px;
  cursor: zoom-in;}
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;}
#imgModalContent {
  max-width: 90%;
  max-height: 90%;
  display: block;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);}
.img-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  color: white;
  cursor: pointer;}

/* ---------- Media Queries ---------- */
@media (max-width: 768px) {
    #wrapper {
        flex-direction: column;
        align-items: center;
    }

    #wrapper table {
        width: 80%;
    }

    .shop-container {
        grid-template-columns: repeat(2, 1fr);
    }}
@media (max-width: 480px) {
    .shop-container {
        grid-template-columns: repeat(1, 1fr);
    }}
@media (max-width: 768px) {
    #product-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .product-left img {
        width: 100%;
        min-width: 150px;
        
    }

    .product-right {
        text-align: center;
        font-size: 0.8rem;
    }}



















