/********** Template CSS **********/
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}
.orderbutton {
  background-color: #04AA6D; /* Green */
  border: none;
  color: #fefdfa;
  padding: 2px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 1px 10px;
  cursor: pointer;
  border-radius: 50px;
  width: 100px
}

.detailsbutton {
    background-color: #dac658; /* Green */
}

.preorderbutton {
    background-color: #5894bf; /* Green */
}
/*** Fonts ***/
.font-work-sans {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: berton;
  src: url(Berton-Voyage-trial.ttf);
}

.font-dancing-script {
    font-family: berton;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/**bebas**/
@font-face {
  font-family: bebas;
  src: url(Bebas-Regular.otf);
}

.font-bebas {
    font-family: bebas;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Button ***/
.btn {
    position: relative;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-dark,
.btn-primary {
    margin: 10px;
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-primary::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.btn-primary::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

.btn-dark::before,
.btn-dark::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-dark::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-dark);
    border-right: 2px solid var(--bs-dark);
}

.btn-dark::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-dark);
    border-bottom: 2px solid var(--bs-dark);
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}
/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Add a red background color to navigation links on hover */
.navbar a:hover, .subnav:hover .subnavbtn {
  background-color: #b87777;
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: red;
  width: 100%;
  z-index: 1;
}

/* Style the subnav links */
.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

/* Add a grey background color on hover */
.subnav-content a:hover {
  background-color: #eee;
  color: black;
}

/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 0;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-primary {
    border-width: 2px;
    background: var(--bs-light);
}

.navbar .btn-primary:hover {
    background: var(--bs-primary);
}
/* Custom Navbar for Fridge and Oven */
/* แถบแบรนด์ด้านบนสุด */
.top-brand-bar {
    background-color: #ab001a;
    color: #f5e4af;
    padding: 1px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* เพิ่มบรรทัดนี้เพื่อกันล้น */
    box-sizing: border-box; 
}

/* ปรับระยะห่างเมนูสำหรับหน้าจอทั่วไป */
.nav-links {
    display: flex;
    gap: 5px; 
}

/* --- จุดสำคัญ: ปรับแต่งสำหรับมือถือ (Mobile Optimized) --- */
@media (max-width: 480px) {
    .top-brand-bar .container {
        padding-left: 5px;
        padding-right: 5px;
        flex-direction: column; /* จัดชื่อร้านกับเมนูให้อยู่คนละบรรทัดถ้าจอแคบมาก */
        gap: 5px;
    }
    
    .nav-links {
        gap: 5px; /* ลดระยะห่างระหว่างเมนูบนมือถือ */
    }

    .nav-links a {
        font-size: 10px !important; /* ย่อขนาดตัวอักษรเมนู */
    }

    .top-brand-bar a:first-child {
        font-size: 15px; /* ขนาดชื่อแบรนด์ FRIDGE AND OVEN บนมือถือ */
    }
}
.nav-brand-logo {
    color: #f5e78e !important; /* สีเหลืองนวลตามสไตล์เมนูเดิม */
    text-decoration: none !important;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 1px;
}

.nav-links a {
    color: #f5e78e !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    border-bottom: 2px solid #f5e78e;
}

/* ปรับระยะห่างของเนื้อหาหน้า Instructors ไม่ให้โดนทับ */
.instructor-container {
    padding-top: 50px !important;
}
.primary-text{
    color: var(--bs-primary);
}
/*** Hero Header ***/
.hero-header {
    /***background: url(../img/cookies.jpg) top left no-repeat;***/
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header .container {
        max-width: 100% !important;
    }

    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.header-carousel .owl-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next{
    position: relative;
    margin-left: 2px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
}

.page-header {
    background: url(../img/limon-head.jpg) center center no-repeat;
    background-size: contain;
}


/*** Service ***/
@media (max-width: 768px) {
    .service .service-item {
        border: 50px !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    }
}


@media (min-width: 992px) {
    .service .service-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }

    .service .service-item.border-lg-end-0 {
        border-right: none !important;
    }

    .service .service-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}

/* 1. The Parent Container (The Row) */
.service {
    display: flex;            /* Stacks children horizontally */
    flex-direction: row;      /* Ensures horizontal alignment */
    justify-content: center;  /* Centers the cards in the middle of the screen */
    flex-wrap: nowrap;        /* Keeps them on one line (use 'wrap' for mobile) */
    gap: 20px;                /* Space between the cards */
    overflow-x: auto;         /* Adds a scrollbar if the screen gets too small */
    padding: 10px;
    align-items: center;
    text-align: center;
}
@media (min-width: 992px) {
    .service {
        flex-wrap: nowrap; /* Horizontal on desktop */
    }
}

@media (max-width: 991px) {
    .service {
        flex-wrap: wrap;   /* Vertical on mobile */
    }
}

/* 2. The Service Item (The Card) */
.service-item {
    /* Set your fixed width here */
    width: 350px;             
         /* Prevents the card from shrinking */
    
    /* Styles from the image */
    background-color: #f1e4d9; 
    border-radius: 60px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service .service-item .btn-primary {
    border-width: 2px;
    background: var(--bs-white);
}

.service .service-item .btn-primary:hover {
    background: var(--bs-primary);
}

.service .service-item img {
    width: 70px;
    margin-bottom: 20px;
}


/*** Team ***/
.team {
    position: relative;
}

.team::before {
    position: absolute;
    content: "";
    width: 200%;
    height: 200px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    margin-top: 1rem;
    /***background: var(--bs-primary);***/
}

.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-overlay {
    background: rgba(255, 255, 255, .9);
}

.team-overlay p {
    letter-spacing: 1px;
}

.team-overlay .btn-dark {
    border-width: 2px;
    color: var(--bs-dark);
    background: transparent;
}

.team-overlay .btn-dark:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--bs-secondary);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}

/* Base Menu Styling */
  ul { list-style: none; padding: 0; margin: 0; }
  li { float: left; position: relative; }
  label, a { display: block !important; color: #f5e78e; padding: 14px 20px; text-decoration: none; cursor: pointer; }
  label:hover, a:hover { background-color: rgba(85, 81, 81, 0.24); }

  /* 1. Hide the actual checkboxes */
  input[type="checkbox"] {
    display: none;
  }
    
  /* 2. Submenus are hidden by default */
  .submenu, .submenu2, .nested-submenu, .nested-submenu2{
    display: none;
    background-color: #b41212;
    min-width: 200px;
  }

  .submenu, .submenu2 { position: absolute; top: 100%; left: 0; z-index: 10; padding-left: 5px; }
  .nested-submenu, .nested-submenu2 { background-color: #b41212; padding-left: 15px; }
  .submenu, .submenu2 li { float: none; }
    .submenu li, 
    .submenu2 li, 
    .nested-submenu li, 
    .nested-submenu2 li {
        float: none;       /* This cancels the horizontal floating */
        display: block;    /* This forces the item to take up the full width */
        width: 100%;
    }
  /* 3. LOGIC: Show submenu when the checkbox is checked */
  #menu-toggle:checked ~ .submenu {
    display: block;
  }
    
  /* Show nested menu when its specific checkbox is checked */
  #nested-toggle:checked ~ .nested-submenu{
    display: block;
  }

  #nested-toggle2:checked ~ .nested-submenu2{
    display: block;
  }

  #menu-toggle2:checked ~ .submenu2 {
    display: block;
  }


/**choices for ordering**/

[type=radio] { 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  
    
}

/* IMAGE STYLES */
[type=radio] + img {
  cursor: pointer;
}

/* CHECKED STYLES */
[type=radio]:checked + img {
  outline: 2px solid #6787e4;
    border-radius: 10px;
}


@media (max-width: 600px) {
  .my-element {
    /* Styles applied only to screens 600px wide or less */
    float: none;
    width: 100%;
  }
}
img {
  max-width: 100%;
  height: auto;
}

