﻿/* ===== GLOBAL ===== */
html,
body{
    margin:0;
    padding:0;
    min-height:100%;
}

body{
    background-color:ghostwhite;
    font-family:'Gill Sans',Calibri,sans-serif;
    font-size:medium;
    line-height:1.5;
    color:#333;

    display:flex;
    flex-direction:column;

    min-height:100vh;

    overflow-x:hidden;
}

main,
.container_search_data,
.search-wrapper{
    flex:1;
}

/* ===== NAVBAR ===== */
.container_menu {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #333;
    text-align: center;
    color: ghostwhite;
    border-bottom: 2px solid #994c4c;
    z-index: 1000;
}

nav.navbar{
    z-index:1000;
}

.menu_list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.menu_item a {
    display: block;
    color: ghostwhite;
    text-decoration: none;
    padding: 14px 20px;
    transition: 0.3s;
}

.menu_item a:hover {
    background-color: #111;
}

.menu_item a.active {
    background-color: #994c4c;
}

/* ===== SEARCH SECTION ===== */
.container_search_data {
    max-width: 900px;
    margin: 120px auto 30px auto;
    padding: 20px;
    background-color: #F5F5F5;
    border-radius: 8px;
}

.table-search-box {
    width: 100%;
}

.table-search-box td {
    padding: 10px;
}

/* ===== RESULT CARDS ===== */
.table-search-result {
    width: 100%;
    margin-top: 20px;
}

.table-search-result td {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s ease-in-out;
}

.table-search-result td:hover {
    transform: scale(1.02);
}

/* ===== BUTTONS ===== */
.button-style {
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    color: #994c4c;
    background-color: #fff;
    border: 2px solid #994c4c;
    border-radius: 5px;
    transition: 0.3s;
}

.button-style:hover {
    background-color: #994c4c;
    color: #fff;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    color: #333;
    border: 1px solid #ddd;
    text-decoration: none;
}

.pagination a.active {
    background-color: #994c4c;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .container_search_data {
        margin-top: 100px;
        padding: 15px;
    }

    .table-search-result td {
        padding: 15px;
        font-size: 14px;
    }

    .button-style {
        width: 100%;
    }
}

body{
    background: ghostwhite;
    color:#333;
}
.theme-btn{
    background:#994c4c;
    color:white;
    border:none;
}
.theme-btn:hover{
    background:#7d3c3c;
}
.card{
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.blog-card{
    transition:0.3s;
}
.blog-card:hover{
    transform:translateY(-5px);
}

.google-popup{

    position:fixed;

    top:20px;
    right:20px;

    width:320px;

    background:#fff;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,0.15);

    z-index:9999;

    overflow:hidden;

    visibility:hidden;
    opacity:0;

    transform:translateY(-10px);

    transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s;
}

.google-popup.show{
    visibility:visible;
    opacity:1;
    transform:translateY(0);
}

/* HEADER */
.popup-header{
    background:#994c4c;
    color:#fff;

    padding:14px 16px;

    font-weight:600;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* CLOSE */
.popup-close{
    cursor:pointer;
    font-size:22px;
    line-height:1;
}

/* BODY */
.popup-body{
    padding:20px;
}

.popup-text{
    color:#555;
    margin-bottom:16px;
    font-size:14px;
    line-height:1.5;
}

/* BUTTON */
.google-login-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    background:#fff;

    border:1px solid #ddd;
    border-radius:40px;

    padding:12px;

    text-decoration:none;
    color:#333;

    font-weight:600;

    transition:.2s ease;
}

.google-login-btn:hover{
    background:#f8f8f8;
    transform:translateY(-1px);
}

.google-login-btn img{
    width:18px;
}

/* ANIMATION */
@keyframes popupFade{

    from{
        opacity:0;
        transform:translateY(-10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

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

    .google-popup{

        width:92%;

        left:4%;
        right:4%;

        top:auto;
        bottom:15px;
    }
}

@keyframes slideIn{
    from{transform:translateX(30px);opacity:0;}
    to{transform:translateX(0);opacity:1;}
}


.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    padding: 5px 10px;
}

.footer-link:hover {
    color: #fff;
    border-bottom: 2px solid #994c4c;
}

.cart-float{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #994c4c;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

#cartCount{
    font-weight: bold;
    margin-left: 5px;
}