/*
Theme Name: hello-elementor Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 0 20px 20px 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.welcome-message h1 {
    font-size: 30px;
    color: salmon;
    font-weight: 700;
}

#customer_details,
.woocommerce-form-coupon-toggle,
h3#order_review_heading {
    display: none !important;
}

.welcome-message {
    text-align: center;
    width: 60%;
    margin: 50px auto;
    padding: 20px;
    border-color: #0b2d4c;
    border-style: solid;
    border-left-width: 20px;
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #0b2d4c;
    color: #fff;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.dashboard-content {
    width: 60%;
    margin: 40px auto !important;
}

.dashboard-content div#image-preview img {
    width: 100px;
}

.dashboard-content h1 {
    font-size: 30px;
    font-weight: 700;
    color: #0b2d4c;
}

.dashboard-content th {
    background: #0b2d4c;
    color: white;
}

select#pub_id {
    margin-bottom: 10px;
}

.success-message p {
    margin: 0;
}

input[type="submit"] {
    background: #002344 !important;
    width: 100%;
}

.dashboard-content td {
    background: white !important;
    color: black;
    font-size: 14px;
    padding: 10px;
    vertical-align: middle;
}

.dashboard-content input[type="text"],
.dashboard-content select {
    outline: none;
    border: 1px solid silver;
    border-radius: 10px;
    color: grey;
}

.dashboard-content label {
    font-weight: 600;
    margin: 20px 0 10px;
    display: block;
}

.dashboard-content button[type="submit"] {
    background: #0b2d4c;
    border: 1px solid #0b2d4c;
    color: white;
    width: 40%;
    border-radius: 10px;
}

.sidebar-header .close-btn {
    font-size: 1.5rem;
    cursor: pointer;
}

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

.sidebar-menu li {
    border-bottom: 1px solid #0b2d4c12;
    margin: 0 20px;
    padding: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #0b2d4c;
    font-size: 16px;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    background: #0b2d4c;
    color: #fff;
    border-radius: 5px;
}

.icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Content area styling */
.dashboard-content {
    margin-left: 250px;
    flex: 1;
}

.sidebar-logo {
    width: 200px;
    display: block;
    margin: 30px auto;
}

.sidebar-logo img {
    filter: drop-shadow(2px 4px 6px grey);
}





.toggleicon {
    display: none;
}


/* Mobile Styles */
@media (max-width: 768px) {

    /* Default Styles */
    .dashboard-container {
        display: flex;
        min-height: 100vh;
    }

    /* Hamburger Icon Styles */
    .sidebar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .sidebar-toggle .line {
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
    }

    /* Close Icon Styles (When Sidebar is Active) */
    .sidebar-toggle.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .sidebar-toggle.active .line:nth-child(2) {
        opacity: 0;
    }

    .sidebar-toggle.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .sidebar {
        width: 250px;
        /* Default width for desktop */
        transition: transform 0.3s ease;
        background: white;
        transition: transform 0.5s ease;
    }

    .dashboard-content {
        flex: 1;
        padding: 20px;
    }

    .dashboard-container {
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
/*         left: -75%; */
        /* Hide sidebar by default */
        width: 70%;
        /* Sidebar takes 70% of screen width */
        height: 100vh;
        z-index: 1000;
        transform: translateX(-300px);
        transition: transform 0.5s ease;
    }

    .sidebar.active {
        transform: translateX(0px);
        transition: 500ms;

    }

    .dashboard-content {
        width: 100%;
        /* Full width on mobile */
    }

    /* Toggle Button Styles */
    .sidebar-toggle {
        display: block;
        z-index: 1001;

        background: #0b2d4c;
        color: #fff;

        border: none;
        padding: 10px;
        cursor: pointer;
    }

    .sidebar-toggle:hover,
    .sidebar-toggle:focus,
    .sidebar-toggle:active {
        background: #0b2d4c;

    }

    .sidebar-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
    }

    .welcome-message {
        width: 100%;
    }

    .toggleicon {
        position: absolute;
        top: 0px;
        display: flex;
        width: 100% !important;
        justify-content: space-between;
        padding: 10px 20px;
        align-items: anchor-center;
        box-shadow: 1px 1px 4px silver;
    }

    button#sidebar-toggle {
        height: fit-content;
        padding: 5px 10px;
    }

    .toggleicon img {
        width: 50%;
    }

    form#beer-search-form {
        flex-direction: column;
    }

    form#beer-search-form *,
    form#beer-search-form button {
        width: 100% !important;
    }

    .dashboard-content h1 {
        font-size: 25px;
        margin-top: 50px;
    }

    .dashboard-content th {
        padding: 10px;
    }
	.beer-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 20px;
}
}

form#beer-search-form {
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 10px 20px 20px 20px;
    align-items: end;
    border-radius: 10px;
    box-shadow: 1px 1px 1px 2px grey;
}

form#beer-search-form button {
    width: 25%;
    height: max-content;
    background: #002344;
    color: white;
    border: 1px solid #002344;
    border-radius: 5px;
}

.f {
    width: 25%;
}

.f label {
    font-weight: 700;
    padding-bottom: 5px;
}

.f input,
.f select {
    outline: none;
    border-radius: 5px;
    border: 1px solid silver !important;
}

.pub-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pub-list * {
    margin: 0;
    color: black;
}

.pub-item {
    box-shadow: 1px 1px 5px 1px #c0c0c052;
}

.pitems h2 {
    font-size: 20px;
    color: #930000;
}

.pitems p {
    font-size: 10px;
}

.pitems {
    padding: 0 10px 10px 10px;
}

.pub-list img {
    width: 100%;
    height: 200px !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .pub-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pub-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pub-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .pub-item {
        flex: 1 1 100%;
    }

    .beer-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

.single-post-page {
    min-height: 100vh;
    margin: 50px auto;
    width: 80%;
}

.single-post-page h1 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

p.location {
    text-align: center;
}

.headd {
    background: #4f7293;
    color: white;
    padding: 5px;
}

.headd * {
    margin: 0;
}

.beer-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.beer-item {
    position: relative;
    border: 1px solid #dbdbdb;
    text-align: center;
    box-shadow: 1px 1px 5px 0px silver;
    border-radius: 5px;
    padding: 20px;
}

.beer-item span {
    position: absolute;
    left: -10px;
    background: #e87b82;
    color: white;
    padding: 2px 10px;
    font-size: 12px;
    top: 10px;
    transform: rotate(325deg);
}

.beer-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.beer-item h3 {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    color: #002344;
}

.beer-item p {
    margin: 0;
    font-weight: 300;
    font-size: 12px;
}








.woocommerce-message {
    display: none;
}
.swiper.sponsored-pubs-carousel {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide.sponsored-pub {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.swiper-slide.sponsored-pub:hover {
    transform: scale(1.05);
}

.sponsored-pub .pub-image {
    width: 100%;
    height: 300px;
    /* Set a fixed height */
    object-fit: cover;
    /* Crop images to fit */
    border-radius: 10px;
    margin-bottom: 10px;
}

.sponsored-pub h3 {
    display: none;
}