/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-color: white;
    color: #257D80;
    overflow-x: hidden;
}

/* Header styles */
header {
    background-color: #257D80;
    color: #e6f3f2;
    padding: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Add these properties to make the header sticky */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 350px;
    height: auto;
    margin-right: 1.2rem;
}

.menu-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
  padding-right: 20px;
}

.menu-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(140, 203, 203, 0.4);
  border: 2px solid #8ccbcb;
}

.menu-buttons a:active {
  transform: translateY(0);
}

.menu-buttons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Optional: Badge for cart items */
.menu-cart-btn {
  position: relative;
}

.menu-cart-btn[data-count]:after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #17a2b8;
  color: white;
  font-size: 11px;
  font-weight: bold;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #e6f3f2;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(37,125,128,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #257D80;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #b3e0e0;
}

.submenu {
    position: relative;
}

.submenu-content {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    background-color: #e6f3f2;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(37,125,128,0.2);
}

.submenu:hover .submenu-content {
    display: block;
}

/* Main content styles */
main {
    padding: 1rem;
    flex-grow: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.content-item {
    background-color: white;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.highlight {
    animation: highlightPulse 2s infinite;
    box-shadow: 0 0 15px rgba(37,125,128,0.7);
}

@keyframes highlightPulse {
    0% { transform: scale(1); background-color: white; }
    50% { transform: scale(1.01); background-color: #e6f3f2; }
    100% { transform: scale(1); background-color: white; }
}

.content-item h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #257D80;
}

.content-item img,
.content-item video {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* Lightbox styles */
.lightbox {
display: none;
position: fixed;
z-index: 1000;
left: 0;
bottom: 0;
width: 100%;
height: 55%;
overflow: auto;
background: #e6f3f2;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.lightbox-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.close {
color: white;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}

.close:hover,
.close:focus {
color: #1a5456;
text-decoration: none;
cursor: pointer;
}

.stats-section {
margin-bottom: 20px;
}

.stats-section h3 {
margin-bottom: 10px;
color: #257D80;
}

.stats-item {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
color: #257D80;
}

footer {
background-color: #8ccbcb;
color: #257D80;
text-align: center;
margin-top: 10px;
margin-bottom: 0px;
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
max-width: 1200px;
/*margin: 0 auto;*/
}

.footer-links a {
color: #257D80;
text-decoration: none;
/*margin: 0 10px;*/
}

.social-icons {
display: flex;
gap: 15px;
}

.social-icons a {
color: #257D80;
text-decoration: none;
font-size: 1.5rem;
}

/* Cart Lightbox Styles */
#cart-lightbox {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: #e6f3f2;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease-out;
    transform: translateY(100%);
}

#cart-lightbox.open {
    display: block;
    transform: translateY(0);
}

.cart-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #257D80;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-button {
    display: block;
    margin-top: 20px;
    padding: 10px;
    background-color: #257D80;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
}

/* Footer styles */
footer {
    background-color: #8ccbcb;
    color: #257D80;
    padding: 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links a {
    color: #257D80;
    text-align: center;
}

.social-icons {
    flex-basis: 100%;
    justify-content: center;
    gap: 20px;
    width: 40px;
    height: 40px;
    margin-top: 15px;
}

.social-icons a {
    color: #257D80;
    text-decoration: none;
    font-size: 1.7rem;
}

/* Product Card */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.card-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.card-text {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    justify-content: flex-start;
}

.form-label {
    margin-right: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-group {
    display: flex;
    flex-shrink: 0;
    margin-left: 0;
}

.btn-group .btn {
    padding: 4px 10px;
    margin: 0 2px;
    height: auto;
    min-width: 30px;
    flex: 0 0 auto;
}

.button-container {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.btn{
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #257D80;
    color: white;
}

.btn-primary.mx-2 {
    margin-left: 3px !important;
    margin-right: 3px !important;
}

.btn-primary:hover {
    background-color: #1A5A5C;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    max-width: 100%;
    flex: 1;
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-secondary {
    background-color: #257D80;
    color: white;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #1A5A5C;
}

.fastcart {
    background-color: #257D80;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}

.fastcart:hover {
    background-color: #1A5A5C;
}

.mx-2 {
    margin-left: 7px;
    margin-right: 7px;
}

.my-2 {
    margin-top: 6px;
    margin-bottom: 6px;
}

/* Cart buttons styling for inline display */
#cartminus, .cartminus, #cartplus, .cartplus {
    color: #257D80;
    background-color: white;
    padding: 2px;
    border: 2px #257D80 solid;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin-top: 3px;
    margin-bottom: 3px;
    height: 33px;
    width: 33px;
    margin-left: 6px;
    display: inline-block; /* Make buttons display inline */
    vertical-align: middle; /* Align buttons vertically */
}

#cartminus, .cartminus, #cartplus, .cartplus {
    color: white;
}

#cartclear, .cartclear, cartclear {
    color: white;
    background-color: red;
    padding: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin-top: 3px;
    margin-bottom: 3px;
    height: 33px;
    width: auto; /* Allow text width for "Remove from Cart" */
    margin-left: 6px;
    display: inline-block; /* Make buttons display inline */
    vertical-align: middle; /* Align buttons vertically */
}

#cartclear:hover, .cartclear:hover, cartclear:hover {
    background-color: #bd2130;
}

/* Add hover effect for the plus/minus buttons as well */
#cartminus:hover, .cartminus:hover, #cartplus:hover, .cartplus:hover {
    background-color: #1a5c5e;
}

/* Fix for the container to ensure buttons stay in one row */
.cart-item-controls {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 5px;
}

.cart-has-items {
    /* Use a subtle glow or border that doesn't change dimensions */
    box-shadow: 0 0 5px 2px rgba(255, 215, 0, 0.6); /* Golden glow */
    border-color: #ffd700; /* Gold border */
}

/* Optional: If you want to show a count badge */
#cart-btn[data-count]:after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1;
    min-width: 15px;
    text-align: center;
}

/* Ensure the cart button has position relative for the badge positioning */
#cart-btn {
    position: relative;
}



/* Media Queries */
@media (max-width: 768px) {
    header {
        padding: 0.55rem;
        font-size: 0.55em;
    }

    .logo img {
        width: 230px;
        height: auto;
        margin-right: 0.5rem;
    }

    .logo h1 {
        font-size: 1.0em;
        margin: 0;
    }

    .menu-buttons {
        margin-top: 0;
        gap: 0.30rem;
    }

    .menu-btn {
        margin-right: 15px;
    }
    
    .stats-btn, .cart-btn, .lock-btn, .add-btn {
        width: 40px;
        height: 40px;
        margin-right: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stats-btn img, .cart-btn img, .lock-btn img, .add-btn img {
        max-height: 100%;
        max-width: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-icons {
        display: flex;
        gap: 10px; /* Reduced gap */
        justify-content: center; /* Center the icons */
    }
  
    .social-icons a {
        color: #257D80;
        text-decoration: none;
        font-size: 1.5rem; /* Adjust this value as needed */
    }
    
    main {
        padding: 0.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
    }
    
    .card {
        padding: 6px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    main {
        padding: 0.35rem;
    }
    
    .form-row {
        margin-bottom: 6px;
    }
    
    .button-container {
        gap: 4px;
    }
    
    .form-label {
        margin-right: 5px;
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 3px 8px;
        font-size: 0.85rem;
        min-width: 24px;
    }
    
    .fastcart {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) {
    .card {
        padding: 16px;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .button-container {
        gap: 10px;
    }
    
    #cartclear, .cartclear, cartclear {
        width: 130px;
        margin-left: 10px;
    }
    
    .btn-danger {
        width: 150px;
        height: 45px;
    }
    
    .btn-secondary {
        width: 150px;
    }
}

@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}