* {
    box-sizing: border-box;
}

body {
    font-family: 'Lora', sans-serif;
}

img {
    height:280px!important;
    box-shadow: none!important;
    border-radius: 0!important;
    width:100%!important;
    object-fit: cover;
}

.products-page {
    margin-top:20px;
    padding-bottom:80px;
}

.product-title h1 {
    margin-top:80px;
    font-weight:800;
    text-align:center;
    margin-bottom:80px;
    font-family: 'Lora', sans-serif;
    color: #332d2b;
}

.admin-title h1 {
    margin-top:20px;
    margin-bottom:40px;
    font-weight:800;
    text-align:center;
    font-family: 'Lora', sans-serif;
    color: #332d2b;
}

.product-container {
    max-width:1300px;
    margin:0 auto;
    display:flex;
    flex-wrap:wrap;
    gap:80px;
    justify-content:center;
    padding:10px 20px;
    overflow-wrap: break-word;
    white-space: normal;
}

.product-container a {
    color:#000;
    text-decoration:none;
}

.product-container a:hover {
    color:#000;
}

.product-card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    width:280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
}

.product-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: static;
}

.product-card:hover {
    transform:scale(1.03);
}

.product-image {
    width: 100% !important;
    height:280px!important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border-radius:0px!important;
}

.product-image img {
    height:280px!important;
}

.product-details {
    display:flex;
    gap:40px;
    margin:10px auto 0 auto;
    padding:10px 20px;
    width:100%;
    height:100px;
}

.product-name {
    line-height:25px;
    text-align:left;
    font-size:1.2em;
    margin-bottom:8px;
    font-weight:600;
}

.product-price {
    margin-top:10px;
    text-align:right;
    font-size:1em;
}

.product-price em {
    font-style:italic;
    font-weight:normal;
}

.filter-container {
    text-align:center;
    margin-bottom:20px;
}

.filter-button {
    font-size:15px;
    padding:10px 20px;
    margin:0 10px;
    background:#fff;
    border:1px solid #7B5B3E;
    border-radius:10px;
    cursor:pointer;
    transition:0.3s ease;
}

.filter-button.active,
.filter-button:hover {
    background:#7B5B3E;
    color:#fff;
}

.action-bar {
    margin:50px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff; /* Text color */
    background-color: #a38550; /* Background color */
    border: none;
    border-radius: 6px;
    text-decoration: none; /* Remove underline from links */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect */
.button:hover {
    background-color: #856d45; /* Darker shade on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Focus Effect (for accessibility) */
.button:focus {
    outline: 2px solid #856d45;
    outline-offset: 2px;
}


.upload-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff; /* Text color */
    background-color: #98a388; /* Background color */
    border: none;
    border-radius: 6px;
    text-decoration: none; /* Remove underline from links */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect */
.upload-button:hover {
    background-color: #828c74; /* Darker shade on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Focus Effect (for accessibility) */
.upload-button:focus {
    outline: 2px solid  #828c74;
    outline-offset: 2px;
}


th {
    background-color: #7B5B3E;
    color: #fff;
    font-weight: bold;
    text-align: left;
    padding: 10px;
}

th a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

tr:nth-child(odd) {
    background-color: #f5ebe0;
}

td {
    padding: 10px;
    border: 1px solid #ccc;
    color: #4a3b2d;
}

.product-view-page {
    margin: 0 auto 50px auto;
    padding: 0 20px 50px 20px;
    display: flex;
    justify-content: center;
}

.product-view-card {
    background:#fff;
    display: flex;
    flex-wrap: nowrap;
    max-width: 1000px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-view-card {
        flex-direction: column;
    }
}

.product-img {
    flex: 1 1 50%;
    background-color: #f0f0f0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    border-radius:0px!important;
    box-shadow:none!important;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
}

.product-info {
    flex: 1 1 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-view-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-view-price {
    font-size: 1.5rem;
    color: #655950;
    margin-bottom: 20px;
}

.products-view-content{
    width : 50%;
}

.product-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top:20px;
}

.back-button-wrapper {
    margin:10px 0px 20px 30px;
    width:20%;
}

.back-button {
    margin-top:50px;
    text-decoration: none;
    background-color: transparent;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 0;
    display: inline-block;
}

.back-button:hover {
    text-decoration: underline;
    color: #555;
}

.back-button, .edit-button, .delete-button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.edit-button {
    background-color: #4caf50;
    color: #fff;
}

.edit-button:hover {
    background-color: #43a047;
}

.delete-button {
    background-color: #f44336;
    color: #fff;
}

.delete-button:hover {
    background-color: #e53935;
}

.product-container .edit-button, .delete-button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.product-container .delete-button {
    background-color: #f44336;
    color: #fff;
}

.product-container .delete-button:hover {
    background-color: #e53935;
    color: #e6e6e6
}

.product-container .edit-button {
    background-color: #4caf50;
    color: #fff;
}

.product-container .edit-button:hover {
    background-color: #43a047;
    color: #e6e6e6
}

.admin-actions-products {
    margin-bottom:40px;
}

/*Separate code for save button to remove previous styling inherited from <button> wrapper*/
.admin-actions-products .save-button-products {
    all : unset;
    block-size : 42.67px;
    box-sizing: border-box;
    text-decoration: none;
    padding: 10px 15px;
    margin-bottom:20px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 25px;
    font-family: 'Lora', sans-serif;
    font-weight: bold;
    transition: background 0.3s ease;
    background-color: #4caf50;
    color: #fff;
}

.admin-actions-products .save-button-products:hover {
    background-color: #43a047;
    color: #e6e6e6;
    cursor:pointer;
}

.form-row-two-cols {
    display: flex; /* Makes the container a flex container */
    gap: 20px;     /* Adds space between the two form groups */
    /* You can also use 'justify-content: space-between;' or 'justify-content: center;' if needed */
}

.form-row-two-cols .form-group {
    flex: 1; /* Allows each form-group to take up equal available space */
}
