/* Base layout */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Remove underline from product name and price */
.product-name, .product-price {
    text-decoration: none !important; /* Ensure no underline */
}

.product-name a, .product-price a {
    text-decoration: none !important; /* Remove underline from links */
    color: inherit !important; /* Keep the color from parent element */
}
/* Logo */
.header .logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 10px;
}

/* Search bar */
.header form {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.header input[type="text"] {
    flex: 1;
    padding: 8px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
}

.header button {
    padding: 8px 16px;
    background-color: #c49b06;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Cart Icon */
.cart-icon {
    margin-top: 8px;
    text-align: center;
    position: relative;
}

.cart-icon a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Toast styles */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Button Styles (applies to all screen sizes) */
.buy-btn, .cart-btn, .wa-btn {
    padding: 12px 20px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.buy-btn {
    background-color: #c49b06;
    color: white;
    margin: 0 8px;
}

.buy-btn:hover {
    background-color: #b38a00;
}

.cart-btn {
    background-color: #333;
    color: white;
}

.cart-btn:hover {
    background-color: #222;
}

.wa-btn {
    background-color: #25D366;
    color: white;
}

.wa-btn:hover {
    background-color: #1da851;
}
/* Back Button Styles — works on all screen sizes */
.back-button {
    margin: 10px 20px;
    text-align: left;
}

.back-button a {
    text-decoration: none !important;
    color: #8c6d1f !important;
    background: #fff9e6 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: inline-block !important;
    border: 1px solid #e0d0a0 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}

.back-button a:hover {
    background: #f3e2b8 !important;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }

    .cart-icon {
        margin-top: 0;
    }

    .cart-icon a {
        font-size: 22px;
    }