@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@media print {
    .toggle-switch-container {
        display: none;
    }
}

@page {
    size: 140mm 297mm;
    margin: 10mm 10mm 10mm 10mm;
}

html,
body {
    background-color: #f9f9f9;
    color: #000000;
    letter-spacing: -0.03em;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

#logo {
    background-image: url('https://www.redclay.co.za/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 250px;
    height: 150px;
    margin-left: -9px;
}

p {
    margin: 0;
    padding: 0;
}

.section {
    position: relative;
    break-before:always;
    page-break-before:always;
    width: 140mm;
    background-color: #FFFFFF;
    margin: auto auto auto auto;
    padding: 15mm;
}

.section-container {
    display: flex;
    justify-content: space-between; /* Pushes text left, QR code right */
    align-items: flex-end; /* Aligns text to the bottom of the QR code */
    width: 100%; /* Ensures full width */
    padding: 0; /* Optional spacing */
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-aligns the text */
    justify-content: flex-end; /* Aligns text to bottom */
    flex: 1; /* Allows content to take up space */
}

.section-content > h1 {
    font-size: 48px;
    font-weight: 200;
    text-transform: uppercase;
    font-style: normal;
    margin: 0;
}

.section-content > p {
    margin: 0 0 8px 0;
    font-weight: 400;
}

.qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* Push QR code to the right */
}

.category-container {
    column-count: 2;
    column-gap: 10mm;
    column-fill: balance;
}

.extras,
.no-break,
.category-header,
.menu-item {
    break-inside: avoid;
    page-break-inside: avoid;
}

.category {
    margin-top: 2mm;
    width: 100%;
    display: inline-block;
}

.category-header > h2[data-category^="_"] {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 0px;
    margin: 0px 0 0 0;
}

.category[data-category="Red Wine"] {
    display: unset;
}

.category-header > h2::first-letter {
    text-transform: uppercase;
}

.category-header > h2 {
    color: rgba(170, 25, 25, 1);
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 400;
    border-bottom: 2px solid rgba(170, 25, 25, 1);
    margin: 0 0 5px 0;
}

.category-header > p {
    font-weight: 400;
    font-style: italic;
    margin: 0 0 8px 0;
    font-size: 12px;
    line-height: 1.4;
}

.category-header > p:empty {
    display: none;
}

.category .extras {
    font-style: normal; 
    font-weight: 300;
    font-size: 12px;
}

.menu-item {
    margin-top: 5px;
}

.menu-item .header {
    display: flex;
    font-size: 14px;
    font-weight: 600;
}

.menu-item .name {
    white-space: nowrap;
    overflow: hidden;
}

.vegetarian-icon {
    color: green;
    margin-left: 5px;
}
.vegan-icon {
    color: darkgreen;
    margin-left: 5px;
}

small {
    font-style: italic;
    font-weight: 200;
}

.menu-item .name::after {
    content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
    color: rgba(0, 0, 0, 0);
}

.menu-item .price {}

.menu-item:not(:has(.description:not(:empty))),
.menu-item:not(:has(.description:not(:empty))) .name,
.menu-item:not(:has(.description:not(:empty))) .price {
    font-size: 13px;
    font-weight: 400;
    line-height: 15px;
  }

.menu-item .description {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 0;
}

.section {
    position: relative;
}