body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF; /* White background */
    color: #6e6658; /* Medium brown for general text */
    font-weight: 400; /* Thin weight for a lighter look */
}

header {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #88bdbc; /* Light teal header */
    padding: 10px 20px; /* Adjusted padding for spacing */
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    position: relative;
}

header p {
    margin: 0;
    color: #FFFFFF; /* White text for visibility on teal */
}

.logo {
    max-width: 200px;
    margin-left: 20px; /* Keep left margin for logo */
}

nav {
    display: flex;
    background-color: #FFFFFF; /* White navbar */
    width: 100%;
    padding: 10px 0;
    justify-content: space-between; /* Logo left, links and hamburger right */
    align-items: center; /* Vertically centers content */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Slight shadow */
    position: relative; /* For hamburger positioning */
}

nav .nav-links {
    display: flex;
    margin-right: 20px; /* Space from right edge */
}

nav a {
    color: #88bdbc; /* Light teal nav text */
    text-decoration: none;
    margin: 0 10px; /* Spacing between links */
    font-size: 24px;
    line-height: 40px; /* Align with logo height */
}

nav a:hover {
    color: #254e58; /* Dark teal hover */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #254e58; /* Dark teal hamburger */
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px; /* Align with nav-links */
}

.top-bar {
    background-color: #4f4a41; /* Warm brown bar */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .social-links {
    color: #88bdbc; /* Light teal text */
    /* Space for future social links */
}

.top-bar .search-cart {
    color: #88bdbc; /* Light teal text */
    display: flex;
    align-items: center;
}

.top-bar .search-cart input {
    padding: 5px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
}

.top-bar .search-cart .cart-icon {
    font-size: 20px;
    margin-left: 10px;
}

.hero {
    background-image: url('../images/1 - 1 copy.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    padding: 5px;
    color: #88bdbc; /* Light teal hero text */
    min-height: 330px;
}

.hero .btn {
    background-color: #254e58; /* Dark teal hover */
    color: #88bdbc; /* Light teal button text */
    text-decoration: none;
    padding: 12px 24px;
    font-size: 18px;
    display: inline-block;
    border: none;
    cursor: pointer;
    border-radius: 10px; /* Round edges */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Slight shadow */
    position: absolute;
    top: 35%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    color: #254e58; /* Dark teal heading */
}

.btn {
    background-color: #254e58; /* Dark teal hover */
    color: #88bdbc; /* Light teal button text */
    text-decoration: none;
    padding: 12px 24px;
    margin: 12px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 10px; /* Round edges */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow */
}

.btn:hover {
    background-color: #112d32; /* Deep teal button */
}

.products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 20px;
    border-radius: 10px; /* Round edges */
}

.products h1 {
    width: 100%;
    text-align: center;
    font-size: 32px;
    color: #254e58; /* Dark teal heading */
    margin-bottom: 20px;
}

.product-card {
    background-color: #FFFFFF; /* White */
    width: 280px;
    min-height: 400px; /* Reduced for tighter layout */
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px; /* Padding around entire card */
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between; /* Image at top, info at bottom */
    box-sizing: border-box; /* Include padding in height */
}

.product-card .image-container {
    height: 150px; /* Fixed height for images */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Padding around image */
}

.product-card img {
    max-width: 100%;
    max-height: 150px; /* Match user-specified max height */
    object-fit: contain; /* Preserve aspect ratio */
}

.product-card .product-info {
    padding: 10px; /* Padding around info */
    min-height: 150px; /* Ensure consistent info height */
    justify-content: center;
    align-items: center;
}

.product-card h3 {
    font-size: 22px;
    color: #254e58; /* Dark teal product title */
    margin: 0 0 5px; /* Tight spacing */
}

.product-card .price {
    color: #4f4a41; /* Warm brown for price */
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px; /* Space above button */
}

.product-card .btn {
    margin: 0; /* Override default margin for consistent alignment */
}

.about {
    max-width: 80%;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF; /* White */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left; /* Left-align text */
}

.about h1 {
    font-size: 32px;
    color: #254e58; /* Dark teal heading */
    margin-bottom: 20px;
}

.about-content p {
    color: #6e6658; /* Medium brown */
    font-size: 22px;
    line-height: 1.6;
    margin: 10px 0;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.about-content ul li {
    color: #4f4a41; /* Warm brown */
    font-size: 22px;
    line-height: 1.6;
    margin: 5px 0;
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f6f5; /* Light gray for contrast */
    border-radius: 10px;
    text-align: left; /* Left-align contact info */
}

.contact-info h3 {
    font-size: 22px;
    color: #88bdbc; /* Light teal */
    margin: 10px 0;
}

.contact-info p {
    color: #6e6658; /* Medium brown */
    font-size: 20px;
    margin: 10px 0;
}

.contact-info ul li {
    margin: 10px 0;
}

.contact-info a {
    color: #88bdbc; /* Light teal */
    text-decoration: none;
}

.contact-info a:hover {
    color: #254e58; /* Dark teal hover */
    text-decoration: underline;
}

.contact {
    max-width: 80%;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF; /* White */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left; /* Left-align text */
}

.contact h1 {
    font-size: 32px;
    color: #254e58; /* Dark teal heading */
    margin-bottom: 20px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Increased padding between form and contact-info */
    min-width: 50%;
}

.contact-content form {
    flex: 1;
    min-width: 300px;
}

.contact-content .form-group {
    margin-bottom: 15px;
    width: 100%;
}

.contact-content .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #254e58; /* Dark teal for labels */
}

.contact-content .form-group input,
.contact-content .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #6e6658; /* Medium brown */
}

.contact-content .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-content .btn {
    display: block;
    margin: 12px 0; /* Left-align button */
}

.success-message {
    background-color: #88bdbc; /* Light teal */
    color: #FFFFFF; /* White text */
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    background-color: #ff4444; /* Red for errors */
    color: #FFFFFF; /* White text */
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.clearfix {
    margin-left: 10%;
    margin-right: 10%;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.info-card {
    background-color: #FFFFFF; /* White */
    width: 25%;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    border-color: #88bdbc; /* Light teal */
    border-width: 1px;
    border-style: solid;
    float: left;
    height: 100%;
}

.info-card img {
    max-width: 10%;
    height: auto;
}

.info-card h3 {
    font-size: 22px;
    color: #88bdbc; /* Light teal */
    margin: 10px 0;
}

.info-card p {
    color: #4f4a41; /* Warm brown for descriptions */
    font-size: 16px;
    margin: 5px 0;
}

footer {
    background-color: #6e6658; /* Lighter brown */
    color: #AFA38E; /* Lightest brown text */
    border-top: 15px solid #254e58; /* Dark teal */
    border-bottom: 0;
    padding: 20px;
    margin-bottom: 0;
    height: 170px;
}

.column {
    float: left;
    max-width: 50%;
    min-width: 10%;
    height: auto;
    padding: 35px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #88bdbc; /* Light teal */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #254e58; /* Dark teal hover links */
}

.bottombar {
    background-color: #4F4A41; /* Dark brown */
    color: #AFA38E;
    padding: 20px;
}

.product-details {
    max-width: 1200px; /* Wider card */
    margin: 20px auto;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px; /* Maintain wide layout */
    margin: 20px auto; /* Center content */
    padding: 20px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 75%; /* Reduce to 75% of original size */
    margin: auto; /* Center the slider */
    padding-top: 40px;
    padding-bottom: 40px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
}

.slide img {
    max-width: 100%;
    height: auto;
    align-items: center;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 40px; /* Fixed size for thumbnails */
    height: 40px;
    object-fit: contain; /* Preserve aspect ratio */
    box-sizing: border-box; /* Include border in size */
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    border: 2px solid #254e58; /* Dark teal border on hover/active */
}

.product-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.product-info h2 {
    font-size: 28px;
    color: #254e58; /* Dark teal */
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 24px;
    font-weight: bold;
    color: #4f4a41; /* Warm brown */
    margin-bottom: 15px;
}

.variations select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.product-info p {
    color: #6e6658; /* Medium brown */
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.product-info p strong {
    color: #254e58; /* Dark teal for labels */
}

.description {
    margin: 20px 0;
    line-height: 1.6;
}

.cart-icon-container {
    position: relative; /* Adjusted for standalone positioning */
    cursor: pointer;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
}

.cart-icon-container .cart-icon {
    margin-right: 5px;
}

.cart-count {
    background-color: #88bdbc; /* Light teal */
    color: #254e58; /* Dark teal */
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-items {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th {
    background-color: #254e58; /* Dark teal */
    color: #88bdbc; /* Light teal */
    font-size: 16px;
    padding: 10px;
    text-align: left;
}

.cart-table td {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    color: #6e6658; /* Medium brown */
}

.cart-table td:first-child {
    color: #254e58; /* Dark teal for product name */
}

.cart-table .price {
    color: #4f4a41; /* Warm brown */
}

.cart-table .subtotal {
    color: #6e6658; /* Medium brown */
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #254e58; /* Dark teal border */
    border-radius: 4px;
    font-size: 16px;
    color: #6e6658; /* Medium brown */
    text-align: center;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    opacity: 1;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    color: #254e58; /* Dark teal */
}

.checkout-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.total-section {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.payfast-btn {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    .products h1 {
        font-size: 24px;
    }

    .product-card {
        width: 100%;
        margin: 10px 0;
        min-height: 350px; /* Adjusted for mobile */
    }

    .product-card .image-container {
        height: 120px; /* Smaller image height on mobile */
    }

    .product-card .product-info {
        min-height: 120px; /* Adjusted for mobile */
    }

    .about {
        margin: 20px 10px;
        padding: 15px;
    }

    .about h1 {
        font-size: 24px;
    }

    .contact {
        margin: 20px 10px;
        padding: 15px;
    }

    .contact h1 {
        font-size: 24px;
    }

    .contact-info {
        padding: 15px;
    }

    .contact-info h3 {
        font-size: 20px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px; /* Adjusted for mobile */
    }

    .contact-content form {
        min-width: 100%;
    }

    nav {
        display: none;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjusted for header and top-bar height */
        left: 0;
        width: 100%;
        background-color: #FFFFFF; /* White active nav */
    }

    nav.active .logo {
        margin: 10px auto; /* Center logo in mobile view */
    }

    nav.active .nav-links {
        flex-direction: column;
        margin: 0;
        text-align: center;
    }

    nav.active a {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px; /* Align within nav */
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
    }

    .top-bar .social-links,
    .top-bar .search-cart {
        margin: 5px 0;
    }

    .cart-items {
        max-width: 100%;
        margin: 10px;
        padding: 10px;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .quantity-input {
        width: 50px;
    }

    .checkout-container {
        max-width: 100%;
        margin: 10px;
        padding: 10px;
    }

    .info-card {
        width: 100%;
        margin: 10px 0;
    }

    .product-container {
        flex-direction: column;
        padding: 10px; /* Reduced padding for mobile */
    }

    .product-gallery, .product-info {
        flex: 1;
        min-width: 100%;
    }

    .slider {
        width: 100%; /* Full width on mobile for better visibility */
    }

    .thumbnail {
        width: 35px; /* Fixed size for thumbnails on mobile */
        height: 35px;
    }
}
