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

body {
    font-family: Verdana, Geneva, sans-serif;
    background-color: white;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 80vh;
}

.sidebar {
    width: 280px;
    background-color: #4a5568;
    color: white;
    padding: 0;
    overflow-y: hidden;
}

.sidebar-item {
    border-bottom: 1px solid #2d3748;
}

.sidebar-header {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    color:inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.sidebar-header:hover {
    background-color: #2d3748;
    color:inherit;
}

.sidebar-header.active {
    background-color: #2d3748;
}

.sidebar-header .icon {
    font-size: 18px;
    font-weight: bold;
}

.sidebar-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #2d3748;
}

.sidebar-content.open {
    max-height: 500px; /* Increased to accommodate sub-sub-items */
}

.sidebar-subitem {
    padding: 12px 40px;
    font-size: 13px;
    cursor: pointer;
    color:inherit;
    border-bottom: 1px solid #4a5568;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-subitem:hover {
    color:inherit;
    background-color: #1a202c;
}

.sidebar-subitem.active {
    background-color: #1a202c;
}

.sidebar-subitem .icon {
    font-size: 14px;
    font-weight: bold;
}

/* New styles for sub-sub-items */
.sidebar-subcontent {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #1a202c;
}

.sidebar-subcontent.open {
    max-height: 200px;
}

.sidebar-subsubitem {
    padding: 10px 60px;
    font-size: 12px;
    cursor: pointer;
    display: block;
    border-bottom: 1px solid #2d3748;
    transition: background-color 0.2s;
    color: #e2e8f0;
}

.sidebar-subsubitem:hover {
    background-color: #0f172a;
    color: white;
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: white;
}

ul li{
    font-size: 13px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.breadcrumb a {
    color: #2c5282;
    text-decoration: none;
}

.product-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-image-detail {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: crosshair;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: block;
    width: 100%;
}

.product-image-inner {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    transition: transform 0.1s ease;
    transform-origin: center center;
    /* Add these properties to prevent overflow */
    display: block;
    object-fit: contain; /* Ensures image fits within container */
    max-width: none; /* Allows scaling beyond 100% width */
    max-height: none; /* Allows scaling beyond 100% height */
}

.modal {
    display: none;
}

.product-info h2 {
    color: #2c5282;
    font-size: 30px;
    margin-bottom: 20px;
    text-align: center;
    font:bold;
}

.categories {
    margin-bottom: 20px;
    font-size: 14px;
}

.categories a {
    color: #2c5282;
    text-decoration: none;
}

.description {
    line-height: 1.3;
    color: #333;
}

.description p {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.description div{
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.description ul {
    margin: 15px 0;
    padding-left: 20px;
}

.description li {
    margin-bottom: 5px;
    color: #2c5282;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.header-container {
    position: relative;
}

.square-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Makes it a perfect square */
    overflow: hidden;
}

.square-image-wrapper img.square-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image fills square without distortion */
    transition: transform 0.4s ease; /* Smooth zoom effect */
}

.square-image-wrapper:hover img.square-image {
    transform: scale(1.1); /* Zoom in */
}

.nav {
    flex-wrap: nowrap;
    flex-direction: row;
}

/* Thumbnail Container Styles */
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
    clear: both;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    background-color: #f9f9f9;
}

.thumbnail:hover {
    border-color: #2c5282;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.2);
}

.thumbnail.active {
    border-color: #2c5282;
    border-width: 3px;
    box-shadow: 0 2px 12px rgba(44, 82, 130, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #f9f9f9;
}
