/*

Theme Name: Artefacts Theme
Author: Rickard Fager 2

*/

@font-face {
    font-family: 'Brandon';
    src: url('./fonts/Brandon_reg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brandon';
    src: url('./fonts/Brandon_bld.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: black !important;
    background: black !important;
    color: white !important;
    margin: 0;
    padding: 0px;
    font-family: 'Brandon',Arial, sans-serif;
}

/* Main page layout */
.page-container {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
}

.left-sidebar {
    width: 240px;
    padding-top: 40px;
    margin-left: 40px;
    margin-right: 40px;
    flex-shrink: 0;

    position: sticky;
    top: 20px; /* Distance from top when sticky */
    height: fit-content; /* Prevents sidebar from taking full height */
    max-height: calc(100vh - 40px); /* Maximum height (viewport - top margin) */
    overflow-y: auto; /* Add scroll if content is too tall */
}

.sidebar-header {
    width: 240px;
    padding-bottom: 40px;
}

.sidebar-header-image {
    width: 240px;
}

.left-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding-bottom: 8px;
}


.left-menu .current-menu-item a,
.left-menu .current_page_item a {
    font-weight: bold;
}

/* Submenu styling */
.left-menu .sub-menu {
    padding-left: 20px;
    margin-top: 5px;
}
/* Responsive design */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .main-content {
        padding-right: 0;
    }
    
    .left-sidebar {
        width: 200px;
        order: -1; /* Show sidebar above content on mobile */
    }
    
    /* Adjust header image for mobile */
    .sidebar-header-image,
    .sidebar-header .custom-logo {
        max-width: 150px;
    }
}
/* Container for image and text side by side */
.spotlight-products {
    background: white;
    color: black;
    display: flex;
    padding: 20px;
    align-items: flex-start;
}
/* Container for image and text side by side */
.product-content-container {
    background: white;
    display: flex;
    align-items: flex-start;
}

/* Image styling (left side) */
.product-content-container .product-image {
    flex: 0 0 50%; /* Fixed width - doesn't grow or shrink, takes 40% */
    max-width: 500px;
    padding-right: 20px;
}

.product-content-container .product-image .product-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-title {
    font-size: 100px;
    font-weight: bold;
    letter-spacing: 6px;
}

/* Text styling (right side) */
.product-content-container .product-text {
    flex: 1; 
    color: #000000;
    font-size: 14px;
    line-height: 1;
}

.product-content-container .product-text p {
    margin-bottom: 15px;
}

.product-content-container .product-text p:last-child {
    margin-bottom: 0;
}

/* Responsive design - stack vertically on mobile */
@media (max-width: 768px) {
    .product-content-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-content-container .product-image {
        flex: 1;
        max-width: 100%;
    }
    
    .product-content-container .product-text {
        font-size: 14px;
    }
}

/* Optional: If you want equal width columns */
.product-content-container.equal-width .product-image,
.product-content-container.equal-width .product-text {
    flex: 1;
}

/* Optional: If you want larger image */
.product-content-container.large-image .product-image {
    flex: 0 0 50%;
}

.product-content-container.large-image .product-text {
    flex: 0 0 50%;
}