@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #1f2937; 
    line-height: 1.6;
    font-size: 16px;
    transition: background 0.5s ease, color 0.3s ease;
}

a {
    color: #047857; 
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #065f46; 
    text-decoration: underline;
}

nav {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    width: 100%;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav .logo {
    font-weight: 700;
    font-size: 1.75rem;
    color: #047857;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 600;
    color: #374151; 
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;
    background-color: #047857;
}

footer {
    background-color: #047857;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    color: #065f46;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

button {
    background-color: #047857;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(4, 120, 87, 0.4);
}

button:hover {
    background-color: #065f46;
    box-shadow: 0 6px 12px rgba(4, 120, 87, 0.6);
}

input, select {
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.3);
}

.form-group {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}


.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}


.transition {
    transition: all 0.3s ease;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

img {
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
    width: 250px !important;
    height: 250px !important;
    object-fit: container;
}

img:hover {
    transform: scale(1.05);
}


#cartToggleBtn {
    width: 28px;
    height: 28px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23047857" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 18c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm10 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-12.83-2.25l1.25-6.25h11.58l-1.5 6.25h-11.33zm15.83-8.75h-15.5l-1-5h-3v2h2l3.6 7.59-1.35 2.44c-.16.28-.25.61-.25.97 0 1.1.9 2 2 2h12v-2h-11.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.72c.75 0 1.41-.41 1.75-1.03l3.58-6.49-1.75-1.01z"/></svg>') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    transition: filter 0.3s ease;
}

#cartToggleBtn:hover {
    filter: brightness(0.8);
}

#cartSection {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 1100;
    font-family: 'Poppins', sans-serif;
}


#cartItems > div {
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background-color: #047857;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(4, 120, 87, 0.4);
}

.add-to-cart-btn:hover {
    background-color: #065f46;
}

.product-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}
