/*general*/
* {
    margin: 0;
    padding: 0;
    border: none;
}

nav, footer {
    background-color: #155050;
    color: #fff;
}

.title-section {
    text-align: center;
    position: relative;
    padding-bottom: .5rem;
    margin: 5px 0 5px 0;
}

.title-section::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50%;        
    height: 3px;        
    background: #155050
}

.alert {
    display: none;
    text-align: center;
}

/* buttons */
.btn-standard, .btn-alert {
    width: 100%;
    background-color: #155050;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-standard:hover {
    background-color: #0e3a3a;
}

.btn-alert {
    background-color: #A52A2A;
}

.btn-alert:hover {
   background-color: #FF4500;
}

/*navbar*/
.navbar-brand {
    position: relative;
}

#logo {
    width: 40px;
}

#olhaquantota-tit {
    color: #FFF;
    position: absolute;
    font-size: 30px;
    left: 50px;
}

.navbar-nav {
    justify-content: flex-end;
    width: 100%;
}

#link-add, #link-dashboard, #link-logout, #link-login {
    color: #FFF;
    font-size: 18px;
    margin-right: 10px;
}

#link-dashboard {
    font-weight: bold;
}

#link-add:hover, #link-dashboard:hover , #link-logout:hover , #link-login:hover {
    color: #909999;
} 

/*--- home ---*/

/*section hero*/
#home-section-hero {
    display: flex;
    background-position: center;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #155050;
    margin-bottom: 25px;
}

#home-section-hero > div {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

#home-section-hero > div > h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

#home-section-hero > div > p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/*section search*/
#home-section-search {
    width: 90%;
    margin: 0 auto;
}

#home-section-search button {
    background-color: #155050;
    color: #fff;
    border: none;
    transition: 0.5s;
}

#home-section-search button:hover {
    background-color: rgba(21, 80, 80, 0.500);
    color: rgb(21, 80, 90);
}

/*--- product ---*/
.div-products-show {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

/* O Card */
.div-product {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.div-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(21, 80, 80, 0.2);
}

.img-products {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.img-products img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; 
}

.product-info {
    padding: 20px;
    text-align: left;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #155050;
    margin-bottom: 4px;
}

.product-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

/*--- access ---*/
#login-container, #register-container {
    margin: 25px auto;
}

#login-container h2, #register-container h2{
    text-align: center;
}

/*--- dashboard ---*/
#div-my-products-add {
    max-height: 75vh;
    overflow: auto;
}

#options-products {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    padding: 2px;
}

#options-products form button{
    border: none;
    font-size: 1.2rem;
    background-color: transparent;
    transition: .5s;
}

#options-products form:nth-child(1) button {
   color: #155050;
}

#options-products form:nth-child(2) button {
   color: #5e5c61;
}

/*--- modal ---*/
#modal-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #155050;
    text-align: left;
    margin: 0;
}

.img-container-modal {
    background-color: #f8f9fa;
    border-radius: 8px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.price-badge {
    background-color: #e8f2f2;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

.price-badge .label {
    font-size: 0.9rem; color: #555; display: block;
}
.price-badge .value {
    font-size: 1.6rem; font-weight: 800; color: #155050;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
}

.detail-item p {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.store-info-box {
    background-color: #fbfbfb;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #155050;
}

.store-info-box p {
    margin-bottom: 5px; 
}

/*--- footer ---*/
footer {
    width: 100%;
    text-align: center;
    align-items: center;
    padding: 12px 0 0 0;
}

@media (max-width: 576px) {
    .div-products-show {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .div-product {
        min-width: 300px;
    }
}