@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
header h2{
    font-family: "Dancing Script", cursive;
    text-align: center;
    font-size: 50px;
}
body{
    font-family: "Roboto", sans-serif;
}
header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0px 15px;
    margin-top: 60px;
}

header a{
    color: #000;
}

.main .in{
    max-width: 1200px;
    margin: 60px auto;
}

.cake_products{
    display: flex;
    flex-wrap: wrap;
}

.cake_products .item{
    width: calc(33.33% - 30px);
    margin: 15px;
}

.cake_products .item .img{
    position: relative;
    padding-bottom: 80%;
    width: 100%;
    overflow: hidden;
    background: #eaeaea;
}

.cake_products .item .img::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0;
    transition: 0.3s;
}

.cake_products .item:hover .img::after{
    opacity: 1;
}

.cake_products .item .img img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    z-index: 1;
}

.cake_products .item:hover .img img{
    transform: scale(1.1,1.1);
}
a{
    text-decoration: none;
}
.cake_products .item .content h3{
    margin: 0px;
    margin-top: 10px;
}

.cake_products .item .content h3 a{
    font-size: 24px;
    color: #000;
}

.cake_products .item .content .star{
    margin-top: 15px;
    color: #FFC000;
}

.button-19 {
   appearance: button;
   background-color: #1899D6;
   border: solid transparent;
   border-radius: 16px;
   border-width: 0 0 4px;
   box-sizing: border-box;
   color: #FFFFFF;
   cursor: pointer;
   display: inline-block;
   font-family: din-round,sans-serif;
   font-size: 15px;
   font-weight: 700;
   letter-spacing: .8px;
   line-height: 20px;
   margin: 0;
   outline: none;
   overflow: visible;
   padding: 13px 16px;
   text-align: center;
   text-transform: uppercase;
   touch-action: manipulation;
   transform: translateZ(0);
   transition: filter .2s;
   user-select: none;
   -webkit-user-select: none;
   vertical-align: middle;
   white-space: nowrap;
   width: 100%;
}

.button-19:after {
    background-clip: padding-box;
    background-color: #1CB0F6;
    border: solid transparent;
    border-radius: 16px;
    border-width: 0 0 4px;
    bottom: -4px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.button-19,
.button-19:focus {
    user-select: auto;
}

.button-19:hover:not(:disabled) {
    filter: brightness(1.1);
    -webkit-filter: brightness(1.1);
}

.button-19:disabled {
    cursor: auto;
}

.button-19:active {
    border-width: 4px 0 0;
    background: none;
}

.btn_add_cart{
    width: 150px;
    margin-top: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 60px !important;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #f7f7f7;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.25s ease;
}

.pagination a:hover {
    background-color: #1899D6;
    color: #fff;
    border-color: #1899D6;
}

.pagination .current {
    background-color: #1899D6;
    color: #fff;
    border-color: #1899D6;
    cursor: default;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cart-table {width:100%; border-collapse: collapse; margin-bottom:20px;}
.cart-table th, .cart-table td {border:1px solid #ddd; padding:10px; text-align:center;}
.qty-control {display:flex; justify-content:center; align-items:center; gap:5px;}
.qty-control button {background:#0E7CF2; color:#fff; border:none; width:25px; height:25px; border-radius:4px; cursor:pointer;}
.qty-control input {width:50px; text-align:center;}
.remove-item {background:red; color:white; border:none; padding:5px 10px; border-radius:5px; cursor:pointer;}
.success {background:#d4edda; padding:10px; border-radius:5px; margin-top:15px;}

.cart-page {
    max-width: 1200px;
    padding: 0px 15px;
    margin: 40px auto;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.cart-table th, .cart-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.cart-table th {
    background: #f9f9f9;
}
.cart-page input {
    display: block;
    width: 120px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.cart-total,.cart-sym{
    color: #0E7CF2;
}
#orderForm input{
    width: calc(100% - 20px);
}
#orderForm button{
    width: 150px;
}
.success {
    background: #dff0d8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #15c071 ;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all .3s ease;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 18px;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    padding: 1px 6px;
}

.main .in{
    display: flex;
    flex-wrap: wrap;
}

.main .in .sidebar{
    width: calc(300px - 30px);
    padding-right: 30px;
}

.main .in .sidebar form{
    display: flex;
}

.main .in .sidebar form input{
    width: calc(100% - 30px);
    max-height: 34px;
    border: 1px solid #eaeaea;
    outline: none;
    padding: 0;
    text-indent: 10px;
}

.main .in .sidebar form button{
    width: 34px;
    height: 34px;
    min-height: 34px;
    border: none;
    background: #1899D6;
    color: #FFF;
}

.main .in .cake_products{
    width: calc(100% - 300px);
    margin-top: -15px;
}

.main .in .sidebar ul{
    padding: 0;
    margin: 0;
}

.main .in .sidebar h2{
    margin-bottom: 10px;
}

.main .in .sidebar ul li{
    list-style: none;
}

.main .in .sidebar ul li a{
    padding: 10px 0px;
    font-size: 16px;
    color: #000;
    display: block;
    border-bottom: 1px solid #eaeaea;
}

.main .in .sidebar ul li.active a{
    color: #1899D6;
}

@media screen and (max-width: 991px){
    header{
        margin-top: 30px;
    }
    .main .in{
        margin-top: 30px;
    }
    .cake_products{
        margin-bottom: 120px;
    }
    .cake_products .item{
        width: calc(50% - 20px);
        margin: 10px;
    }
    .btn_add_cart{
        width: 100%;
    }
    .cake_products .item .img{
        padding-bottom: 65%;
    }
    .cake_products .item .content h3 a{
        font-size: 20px;
    }
    .cake_products .item .content h3{
        line-height: 20px;
    }
    .cake_products .item .content h3{
        min-height: 48px;
    }
}