
/* ============================
   Mobile en Tablet: tot 1023px (smartphones en tablets)
   ============================ */

@media screen and (max-width: 1023px) {

.hero-background {
    margin: -10px;
}
      .sidebar-container {
        display: none;
    }
    
    /* BELANGRIJK: Maar tonen als het actief is (via JS toggle) */
    .sidebar-container.active {
        display: block !important; /* Important nodig om CSS volgorde te overrulen */
    }
    
    /* Filters styling voor mobiel/tablet wanneer actief */
    .sidebar-container.active .filter-section {
        display: block !important;
        margin-bottom: 15px;
        padding: 15px;
        background-color: #f9f9f9;
        border-radius: 8px;
    }
    
    /* Verberg specifieke menu blokken in de sidebar ook wanneer niet actief */
    .sidebar-container .menu-block.hidden-mobile {
        display: none !important;
    }
    
    /* Verbeter zichtbaarheid van sidebar toggle knop */
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 15px;
        margin-bottom: 15px;
        background-color: #f0f0f0;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        cursor: pointer;
    }
    
    .sidebar-toggle.active {
        background-color: #e9e9e9;
    }

    /* Quality and flag alignment */
    .quality, .landvlag {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Product meta columns */
    .product-meta {
        flex-direction: column !important;
        margin-top: 0px;
        padding-top: 0px;
    }
    
    /* Product rows */
    .product-row {
        gap: 0px;
        flex-direction: column;
        position: relative;
        padding: 15px;
    }
    
    .product-row .shop-logo {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    .product-details-verk {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .product-details-verk h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .product-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .product-meta .button {
        min-width: auto;
        padding: 8px 15px;
    }
    
    /* General container adjustments */
    .wrapper {
        width: 100%;
        padding: 0;
    }
    
    .container {
         flex-direction: column; 
    }
    
    .main-content {
        margin: 0;
        padding: 10px;
    }
    
    /* Card details adjustments */
    .card-container {
        margin: 0;
        padding: 10px;
        box-shadow: none;
    }
    
    .kaart-info-content {
        padding: 10px 0;
    }
    
    .kaart-info-content .info-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }
    
    .kaart-info-content .info-label {
        margin-bottom: 5px;
    }
    
    /* Menu blocks */
    .menu-block {
        margin-right: 20px;
        margin-left: 20px;
    }
    
    .menu-block label {
        font-size: 20px;
    }
    
    /* Sort options */
    .sort-label {
        display: none;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: center;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
    }
    
    /* Pagination */
    .pagination a {
        padding: 5px 10px;
    }
    
    /* Footer */
    .footer {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    /* Grids */
    .talen, 
    .language-grid, 
    .sets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-container, 
    .top-shops {
        grid-template-columns: 1fr;
    }
    
    /* Kopen & Verkopen sections */
    .kopen-verkopen-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kopen, .verkopen, .account, .berichtencentrum {
        background: #f8f8ff;
        padding: 0px;
    }
    
    /* Slider */
    .slider-container {
        font-size: 18px;
    }
    
    /* Checkboxes */
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        vertical-align: bottom;
    }
    
    /* Headings */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Shop actions and details */
    .shop-actions {
        width: inherit;
        margin-top: 0px;
    }
    

    
    .shop-meta {
        align-items: center;
        gap: 5px;
    }
    
    /* Button styles */
    .sb-buttons {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .sb-buttons button {
        flex: 1;
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Flag links */
    .flag-link img {
        width: 42px;
        height: 42px;
    }
    
    .flag-link.active, .flag-link:hover {
        border-color: inherit;
        border: 4px solid #000;
    }
    
    /* Buttons and interactive elements */
    .button, 
    .view-all-button, 
    .action-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .grading-info {
        min-height: inherit;
        min-width: inherit;
    }
    
    /* Sections padding */
    .featured-section {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    /* Mobile forms and elements */
    .form-section, .new_form-section {
        padding: 10px;
    }
    
    .new_input-group {
        margin-bottom: 15px;
    }
    
    .new_input-group label {
        display: block;
        margin-bottom: 8px;
    }
    
    .new_radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .new_radio-group label {
        margin-right: 0;
    }
    
    /* Grading details section */
    .new_grading-details {
        margin-left: 0;
        padding-left: 10px;
    }
    
    /* Photos grid on mobile */
    .new_photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Preview containers for photos */
    .preview-container {
        max-width: 100%;
    }
    
    .image-preview-wrapper {
        max-width: 100%;
    }
    
    .image-preview-wrapper img {
        max-width: 100%;
    }
    
    /* Sales table */
    .salestabel {
        width: 100%;
        font-size: 14px;
    }
    
    .salestabel th,
    .salestabel td {
        padding: 8px;
        text-align: left;
    }
    
    /* Table adjustments for smaller screens */
    .salestabel thead {
        display: none;
    }
    
    .salestabel tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .salestabel td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 120px;
        min-height: 30px;
    }
    
    .salestabel td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        font-weight: bold;
        text-align: left;
    }
    
    /* Product details */
    .product-details {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .product-info {
        width: 100%;
    }
    
    /* Product thumbs */
    .product-thumb-container:hover .product-thumb {
        transform: scale(3) translateY(-10px); /* Smaller scale on mobile */
    }
    
    .product-images-shop {
        justify-content: center;
    }
    
    .product-image-shop {
        height: 200px;
    }
    
    /* Form elements */
    .account-form, 
    .password-form, 
    .shop-images {
        width: 100%;
        padding: 15px;
    }
    
    /* Menu hover effect fix for touchscreens */
    .menu li a:hover {
        background-color: transparent;
    }
    
    /* Improved touch targets for mobile */
    .button, 
    .sort-dropdown, 
    .pagination a {
        min-height: 44px; /* Recommended touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Shop info and product details */
    .product-image {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .product-image img {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Message container */
    .message-thread {
        padding: 20px;
    }
    
    /* Navigation for message center */
    .breadcrumbs {
        font-size: 12px;
    }
    
    /* Buttons styling */
    .button, .view-button, .remove-button, .buy-button {
        padding: 10px;
        width: 100%;
        text-align: center;
        margin: 5px 0;
        box-sizing: border-box;
    }
    
    /* Sets page specific adjustments */
    .sets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .set-image {
        height: 50px;
    }
    
    .set-name {
        font-size: 14px;
        height: auto;
        max-height: 2.8em;
    }
    
    .set-info, .release-date {
        font-size: 12px;
    }
    
    .series-heading {
        font-size: 16px;
        margin-top: 30px;
    }
    
    .series-period {
        display: block;
        margin-top: 5px;
        font-size: 0.8em;
    }

.sidebar-container {
    width: inherit;

}

.product-thumb-container-verkoper img {
    margin-right: inherit;
 }

 .series-heading {
        font-size: 22px;
        margin-top: 10px;
        text-align: center;
    }

.series-selector {
    text-align: center;
}


    .menu-block label {
    font-size: 16px;
}


.product-row .shop-logo {
        position: inherit;
        top: 5px;
        left: inherit;
        width: 50px;
        height: 50px;
    }

    .shop-details h3 {
        font-size: 20px;
        text-align: center;
    }


   .shop-meta {
        flex-direction: column;
        align-items: center; /* Horizontaal centreren */
        justify-content: center; /* Verticaal centreren als er ruimte is */
        text-align: center;
        gap: 12px;
        margin: 15px auto; /* Auto margins voor horizontaal centreren van de hele container */
        max-width: 400px; /* Optioneel: maximale breedte beperken */
    }
    
    .shop-meta span {
        font-size: 13px;
        justify-content: center; /* Centreer de icoon en tekst binnen elke span */
    }
    
    .shop-meta svg {
        width: 24px;
        height: 24px;
    }
    
    /* Verberg de 'Actief sinds' info op mobiel */
    .shop-meta span:nth-child(3) {
        display: none;
    }

    .sidebar-container.active .filter-section {
        padding: inherit;
        padding-bottom: 20px;
}

.image-preview, .image-upload-label {
        width: auto;
        height: auto;

}

.delete-button {
    min-height: 24px!important;
}

.image-slot[data-type="banner"] {
    width: 100%;
    height: inherit;
}

.image-slot {
    margin-left: auto;
    margin-right: auto;
}

/* bericht hieronder */

    
    /* Verberg de header rij op mobiel */
    .message-table thead {
        display: none;
    }
    
    /* Elke rij wordt een "kaart" */
    .message-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        background-color: #fff;
        position: relative;
        padding: 12px;
    }
    
    /* Unread styling */
    .message-table tr.unread {
        border-left: 4px solid #ffd300;
    }
    
    /* Cel styling */
    .message-table tbody td {
        display: block;
        text-align: left;
        padding: 6px 10px;
        border: none;
        position: relative;
    }
    
    /* Onderwerp styling (maak het duidelijker) */
    .message-table td.bericht-link {
        font-weight: bold;
        font-size: 15px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .message-table td.bericht-link a {
        color: #333;
        text-decoration: none;
        display: block; /* Maakt het hele gebied klikbaar */
    }
    
    /* Unread badge */
    .unread-badge {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: #3273dc;
        border-radius: 50%;
        margin-left: 8px;
    }
    
    /* Contactpersoon en datum op één regel */
    .message-table tbody tr td:nth-child(2),
    .message-table tbody tr td:nth-child(3) {
        display: inline-block;
        width: auto;
        padding-top: 12px;
    }
    
    /* Voeg labels toe aan de cellen */
    .message-table tbody tr td:nth-child(2)::before {
        content: "Van: ";
        font-weight: 600;
        color: #666;
    }
    
    .message-table tbody tr td:nth-child(3)::before {
        content: " • ";
        color: #999;
        margin: 0 5px;
    }
    
    /* Delete knop rechtsonder */
    .message-table tbody tr td:last-child {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 0;
    }
    
    /* Delete knop styling */
    .delete-message-form .button.delete {
        background-color: transparent;
        min-height: 36px !important;
        width: 36px;
        padding: 0;
        border: none;
        color: #999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .delete-message-form .button.delete svg {
        stroke: #999;
    }
    
    /* Verbeter de touch target van de hele rij */
    .message-table tbody tr {
        cursor: pointer;
    }


.received-message, .sent-message {
    max-width: 100%;
}

.unread-badge {
    display: none;
}

/* berichten hierboven */

.shop-logo-verkoper {
    position: inherit;
    text-align: center;
    left: 0%;
}


.shop-banner-container-verkoper {
    position: relative;
    width: 100%;
    height: 135px;
}

.shop-banner-verkoper
{
    display: none;
}


.shop-banner-container-verkoper {
    margin-bottom: 0px!important;
}


.shoptit h1 {
    margin-top: 10px !important;
}


.seller-info-content .quality {
    margin-left: inherit;
    margin-right: inherit;
}

    .product-image img {
        max-width: 100px;
    }

    .product-details {
    gap: 0rem;

}

    .kaart-info-content .info-row {
        display: flex !important; /* Gebruik !important om eventuele inline-styles te overschrijven */
        flex-direction: row !important; /* Zorg dat het horizontaal blijft, niet verticaal */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 5px !important;
        border-bottom: 1px solid #eee !important;
        width: 100% !important;
    }
    
    /* Styling voor info-label */
    .kaart-info-content .info-row .info-label {
        flex: 0 0 auto !important;
        text-align: left !important;
        margin-bottom: 0 !important; /* Verwijder eventuele eerdere margin-bottom */
        margin-right: 10px !important;
    }
    
    /* Styling voor info-value */
    .kaart-info-content .info-row .info-value {
        flex: 1 1 auto !important;
        text-align: right !important;
        word-break: break-word !important;
    }

.button, .buy-button {
    display: inline-flex !important;
    width: auto !important;      /* Verwijdert vaste breedte */
    min-width: auto !important;  /* Verwijdert minimale breedte */
    align-items: center;
    justify-content: center;
    padding: 13px 24px !important; /* Horizontale padding voor ruimte rond tekst */
    margin: 0 auto !important;    /* Centreert de button */
}

/* Styling voor de container om de button te centreren */
.seller-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Zorg ervoor dat de button-container zelf gecentreerd blijft */
.other-qualilty {
    margin-bottom: 10px;
    text-align: center;
}

.save {
    text-align: center;
}



.message-table {
  width: 100%;
  display: table!important; /* Verander van block naar table */
  table-layout: fixed; /* Zorgt voor betere verdeling van kolombreedtes */
  overflow-x: visible; /* Verwijder horizontale scroll */
}

.mijnshop  {
    display: none;
}


.product-container {
    margin-left: 25px;
    margin-right: 25px;

}

.product-row {
    padding: 30px!important;
}

.no-results-container {
    width: inherit!important;

}

.not-found-title {
    font-size: 100px;
}

.not-found-container {
    width: 320px;
}

.filters label {
    display: none;
}

.filters {
    justify-content: center;

}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px; /* Ruimte tussen de buttons */
  margin: 10px 0;
}

.remove-button {
        width: inherit;

}

/* Basisstijl om elementen onder elkaar te plaatsen */
.step-box {
  display: flex;
  flex-direction: column;
  align-items: center;
width: inherit;
}

/* Zorgt dat tekst gecentreerd is */
.step-text {
  text-align: center;
}

/* Zorgt dat de center div de items centreert */
.center {
  display: flex;
  justify-content: center;
  width: 100%;
}


/* ============================
   Desktop: 1024px en hoger
   ============================ */
@media screen and (min-width: 1024px) {

      .sidebar-container,
    .sidebar-container:not(.active) {
        display: block !important;
    }
    
    /* Toon alle menu blokken op desktop */
    .sidebar-container .menu-block,
    .sidebar-container .menu-block.hidden-mobile {
        display: block !important;
    }
    
    /* Verberg de sidebar toggle knop op desktop indien aanwezig */
    .sidebar-toggle {
        display: none !important;
    }
    
    /* Je kunt hier eventueel specifieke desktop stijlen toevoegen */
    .container {
        flex-direction: row;
    }
    
    .main-content {
        /* Pas aan volgens je layout */
        margin-left: 20px; 
    }
    
    /* Toon alle menu blokken op desktop */
    .menu-block.hidden-mobile {
        display: block !important;
    }
}



/* ============================
   bredere telefoons
   ============================ */


/* Tablet stijlen (768px - 991px) */
@media (max-width: 991px) {
  .product-row {
    padding: 12px;
  }

.msbutton {
    font-size: 9px;
}
  
  .product-thumb-container-verkoper {
    flex: 0 0 80px;
  }
  
  .product-thumb-container-verkoper img {
    max-width: 80px;
  }
  
  .product-details-verk {
    flex: 1 1 40%;
    min-width: 150px;
  }
  
.editor {
        display: flex;
        gap: 5px;
        margin-top: 10px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
  
  .editor a.button {
    padding: 5px 10px;
    font-size: 14px;
    min-height: 34px !important;
  }
}

/* Mobiele stijlen (tot 767px) */
@media (max-width: 767px) {
  .product-row {
    flex-direction: column;
  }
  
  .product-thumb-container-verkoper {
    align-self: center;
    margin-bottom: 10px;
  }
  
  .product-details-verk {
    width: 100%;
    text-align: center;
  }
  
  .product-details-verk h3 {
    font-size: 1.1em;
    margin-top: 5px;
  }
  
  .landvlag {
    justify-content: center;
    display: flex;
    align-items: center;
    margin: 5px 0;
  }
  
  .product-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  
  .editor {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
  }
  
  .editor a.button {
    flex: 1;
    text-align: center;
    padding: 5px 8px;
    font-size: 14px;
    min-height: 34px !important;
  }

}


/* ============================
   kleinste telefoons
   ============================ */




/* Verberg de zoek-button alleen op de kleinste portrait schermen */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .editor .zoek-button, .shop-info{
    display: none !important;
  }
}


@media screen and (max-width: 767px) {
  .breadcrumbs.koop .links > span:last-child:not(.shopname) {
    display: none; 
  }
  .winkel-meta {
    display: block;
  }
}
